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
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
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
[Dorset] rsync with compression
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? Would I be correct in thinking that it will only compress those new files that it copies over and not the existing data that has already been copied to the external hard drive?? 2) the majority of files on the nas are jpg, mp3 etc. which are compressed already, would there be much to be gained from adding the compression option to my rsync string if the majority of the files are compressed? I guess this is a bit like how long is a bit of string as it will depend on the quanity of mp3 and jpg files?? Tim -- 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