On Sat, 25 Jan 2020 10:51:26 -0800 Ben Koenig <[email protected]> dijo:
>It always helps for me to drop back to the bare minimum when setting >up new rsync scripts, and then add options as needed once I'm happy >with the paths for my new backup/mirror routine. > >Try sticking to -rvh >-r for recursive >-v for verbose >-h for human readable numbers... MB instead of bytes... that sort of >thing > >-a is actually a shortcut for -rlptgoD. Since each of those letters do >something different you need to go through each one in the manpage to >see what it does. just using -r is good enough for most basic use >cases, but in the long run you'll want to use -a for permissions >reasons. Once you figure out where it's failing. > >Also note that you are using --delete which creates more of a mirror >than a backup. Try running a backup with minimal options to make sure >that works, then add options 1 by 1 until it starts choking again. >$ rsync -rvh /home/jjj/ /media/jjj/Data/Home/ > >Since -a actually does a bunch of stuff all in one option it's hard to >tell which of those features is getting in the way. That sounds like good advice. I should have added that the command that I am using for /home is edited from a cron job that I have been using for years to back up just ~/Mail to /media/jjj/Data/Mail. All I did was change the names of the source and destination. OK, I kind of cheated, but cheating is so much fun, and lots easier. :) Having run the command and looked at the properties for each folder with a GUI file manager I knew that some files had not been copied. To get a list I used 'diff -qr /home /media/jjj/Data/Home/ |more,' but I'm having trouble figuring out what it's saying. It looks like there are lots of files in the backup that are not in ~/, like the --delete option in the command is not working. I have since run the rsync command numerous times, always making minor changes to ~/, and each time the backup folder keeps getting bigger. And about half the files that were not copied were 'permission denied,' but I'm still scratching my head abut the rest. Oh, and a mirror is exactly what I want. I don't want to store previous versions of stuff. I'll keep poking at things, and try to figure out diff. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
