New answers tagged rsync
0
votes
rsync with --delete-before except if source empty
you can specify source path with a .. like this:
rsync [opts] /mnt/source/.somedirectory/../ /mnt/target/backup/
you can pick any folder that already exists and you will never delete
if source is not ...
0
votes
Using rsync with sudo
The sudo -v option doesn't seem to be working for some reason, perhaps because it's SSH, or because you disabled timeouts. Let's avoid it:
rsync -avz --stats --rsync-path="{ echo 4321; cat; } | ...
Top 50 recent answers are included
Related Tags
rsync × 770backup × 246
ssh × 99
command-line × 77
server × 69
bash × 63
cron × 54
permissions × 51
mount × 36
scripts × 32
sync × 32
hard-drive × 22
samba × 22
networking × 20
partitioning × 19
14.04 × 17
filesystem × 15
16.04 × 14
12.04 × 14
cp × 14
files × 13
transfer × 13
directory × 12
scp × 12
copy × 11