Re: [Dorset] rsync with compression
On 26/06/11 17:40, Tim wrote: I have a single disk nas which I back up to a external hard disk using rsync, the total amount of data I backup from the nas is about 235gb. At the moment I use rsync to copy it from the nas to the external hard disk, but I am thinking about using the -z option to add compression but have a couple of questions 1) what would happen if I just add the -z option to my existing command? From the man page: -z, --compress compress file data during the transfer The resulting files would be the same, the compression is only for the data transfer, which makes more sense when you are using rsync over the internet, perhaps via SSH. -- Andrew. -- Next meeting: TBD, ???day 2011-07-?? 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] rsync with compression
On 26/06/11 18:09, Andrew Morgan wrote: On 26/06/11 17:40, Tim wrote: I have a single disk nas which I back up to a external hard disk using rsync, the total amount of data I backup from the nas is about 235gb. At the moment I use rsync to copy it from the nas to the external hard disk, but I am thinking about using the -z option to add compression but have a couple of questions 1) what would happen if I just add the -z option to my existing command? From the man page: -z, --compress compress file data during the transfer The resulting files would be the same, the compression is only for the data transfer, which makes more sense when you are using rsync over the internet, perhaps via SSH. Ah, point taken, when I read the man page, I took it to mean it compressed in on to the destination disk, oh well. thanks Andy -- Next meeting: TBD, ???day 2011-07-?? 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] rsync with compression
go to external archive disk find . -exec gzip -9 {} \; * Caution! * This will compress the files you have already transferred. Trouble is, you will then have an archive of zipped files and next time you run rsync (even with -z, as noted above) it is likely to want to transfer the files all over again! -- best regards, Victor Churchill, Bournemouth -- Next meeting: TBD, ???day 2011-07-?? 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue