|
|
rsync is a very powerful program, but it contains a maze of twisty little options, all different, and sometimes I find I've messed things up long after it happened. I'm writing down typical incantations here.
Don't use -L here; it will create additional files from symlinks.
rsync -av --delete-after /src/$i $dumpfs/$me-$os
rsync > /tmp/rsyncerrs -LHav --partial --delete-after /spool/Already /spool/Docco destination
# or
cd /teevee/spool
# don't try to sync .snap or ..sujournal
rsync -LHav --partial --delete-after * /spool | tee /tmp/rsyncerrs
All file systems except the last are sources. destination is the base file system, and the files will include the path names of the sources with the initial / stripped
Greg's home page | Greg's diary | Greg's photos | Copyright |