How would an RSYNC command look to copy all directories from one machine to another. I have tried the following and only get a few directories: RSYNC --rsh=ssh -rpog / IPADDRESS:/Directory RSYNC --rsh=ssh -rpog */ IPADDRESS:/Directory RSYNC --rsh=ssh -rpog /* IPADDRESS:/Directory -- View this message in context: http://www.nabble.com/RSYNC-all-Directories-tp15458934p15458934.html Sent from the Samba - rsync mailing list archive at Nabble.com.
On Wed, 2008-02-13 at 06:06 -0800, bedwards wrote:> How would an RSYNC command look to copy all directories from one machine to > another. > > I have tried the following and only get a few directories: > RSYNC --rsh=ssh -rpog / IPADDRESS:/Directory > RSYNC --rsh=ssh -rpog */ IPADDRESS:/Directory > RSYNC --rsh=ssh -rpog /* IPADDRESS:/DirectoryThe first command should work. What directories does it copy, and what directories are missing from the destination? You could rerun the command with verbosity level 2 (-vv) to get more information about what it is doing. I would recommend passing -t to preserve modification times (needed for rsync to skip unchanged files on subsequent runs) and --one-file-system to avoid sending such virtual filesystems as /proc and /sys , but neither of these suggestions relates to the missing directories. Matt
On Wed, 2008-02-13 at 09:42 -0500, Brady Edwards wrote:> Say I have 35 Directories, it will back up the first 5, 3rd from last and > the last one. It doesn't just quit half way through, but it is consistent > on the directories that it has been coping.That doesn't help me very much to troubleshoot the problem. Please post the complete output of rsync with -vv and an "ls -l" listing of the destination so I can see what is missing and (hopefully) why. If you don't want to do that because the names of the directories are secret, see if you can make a similar setup of directories in a temporary area and recreate the problem there. Matt
On Wed, 2008-02-13 at 10:18 -0500, Brady Edwards wrote:> This is our Live DPN database and I do not want to run an RSYNC command > during business hours. I have setup a cron job for this to run on > Saturdays. All the days through the week I am only backing up a single > directory from the root and everything under it and it works great. I'm > just not able to get all of the directories from the root to backup. All > the permissions are the same and owners are the same.OK, so when you are ready to run rsync, post the -vv output and the destination listing. If I knew of some common reason why rsync would erratically skip directories, I would mention it now, but I don't, so I'll just wait until I can see what your scenario is and try to find out what is going on. Matt