Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6511

Ang: Re: Ang: Re: Backup using rsync

$
0
0

by Bente Olsen.  

Thanks Ken,

Your suggestion about history | grep rsync led me to think of what the root of the error  could be:

rsync source destination

is not the same as

rsync source/ destination

while the first syncs source to destination the latter syncs the content of source to destination smile

A dry run (with an extra v option) illustrates the difference:

 ~ $ rsync -auvtzv --delete --dry-run -e ssh  me@domain.tld:/var/www/moodledata/filedir/0f/ moodledata/filedir/0f/
[...] password:
receiving incremental file list
delta-transmission enabled
9b/0f9b429129f7fac4fb32cca41a7ce8b7587b2864 is uptodate
a8/0fa816c009cc4021f324af7c568551bcb07244f7 is uptodate
c2/0fc2b93be9cdd0f0040b8d33722251be5bdeda47 is uptodate
./
ca/
ca/0fca0abae0b77452c1c98654b9dadc2b194bd66b
total: matches=0  hash_hits=0  false_alarms=0 data=0

sent 59 bytes  received 483 bytes  47.13 bytes/sec
total size is 255,968,868  speedup is 472,267.28 (DRY RUN)

Here only the map ca do not fit the local ca map

and without source end slash

no maps are equal to the local because rsync vil copy the map 0f into the local map 0f:

 ~ $ rsync -auvtzv --delete --dry-run -e ssh  me@domain.tld:/var/www/moodledata/filedir/0f moodledata/filedir/0f/
[...]  password:
receiving incremental file list
delta-transmission enabled
0f/
0f/09/
0f/9b/
0f/9b/0f9b429129f7fac4fb32cca41a7ce8b7587b2864
0f/a8/
0f/a8/0fa816c009cc4021f324af7c568551bcb07244f7
0f/c2/
0f/c2/0fc2b93be9cdd0f0040b8d33722251be5bdeda47
0f/ca/
0f/ca/0fca0abae0b77452c1c98654b9dadc2b194bd66b
total: matches=0  hash_hits=0  false_alarms=0 data=0

sent 60 bytes  received 497 bytes  53.05 bytes/sec
total size is 255,968,868  speedup is 459,549.13 (DRY RUN)

If I had been aware of that, my incremental would probably have been incremental!


Viewing all articles
Browse latest Browse all 6511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>