
Is there a way of getting rsync to just list what it would do without doing anything? Failing that is there any other way to get a list of changes between two trees of files where one of them is remote? I've got an archive of 30G+ of video files that needs to be synchronised occasionally with a system that has limited quota. I want to get a list of new/changed files that I can pass as parameters to tar and then take a tar file on a USB stick with the new files. I know I could run "find ." on both sides and then compare the output files, but I'd prefer something less hacky if possible. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

On 22/01/13 13:51, Russell Coker wrote:
Is there a way of getting rsync to just list what it would do without doing anything? Failing that is there any other way to get a list of changes between two trees of files where one of them is remote?
In the fine manual page: -n, --dry-run perform a trial run with no changes made -i, --itemize-changes output a change-summary for all updates -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC

Is there a way of getting rsync to just list what it would do without doing anything? Failing that is there any other way to get a list of changes between two trees of files where one of them is remote?
Does the --dry-run option + suitable 'how to determine what is different' options not give you what you want? I assume from what you wrote below that the video files are going to be either added or deleted and not changed, so you can probably just compare dates and presence. James
I've got an archive of 30G+ of video files that needs to be synchronised occasionally with a system that has limited quota. I want to get a list of new/changed files that I can pass as parameters to tar and then take a tar file on a USB stick with the new files.
I know I could run "find ." on both sides and then compare the output files, but I'd prefer something less hacky if possible.
-- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ _______________________________________________ luv-main mailing list luv-main@luv.asn.au http://lists.luv.asn.au/listinfo/luv-main

Hi, I like using Unison (http://www.cis.upenn.edu/~bcpierce/unison/ and Debian repositories) because it does two-way (and multi-way) synchronization, and handles deletes, renames, chmod etc. I do work-PC <-> laptop <-> home-PC and work-PC <-> MacBook <-> home-PC If I add/modify/delete a file anywhere, the change eventually propagates everywhere else. It can tell you what changes it is about to do and their size, and allow you to skip items, or reverse a change The GUI is more informative, but it can be used in text-UI or even batch mode. I do updates both when the laptop is near the thing it is syncing with, and small or important updates over the Internet as required. IPv6 everywhere! Yay! I have separate profiles for syncing "documents and software" v. "photos and videos" v. "ISOs" John On 22 January 2013 13:51, Russell Coker <russell@coker.com.au> wrote:
Is there a way of getting rsync to just list what it would do without doing anything? Failing that is there any other way to get a list of changes between two trees of files where one of them is remote?
I've got an archive of 30G+ of video files that needs to be synchronised occasionally with a system that has limited quota. I want to get a list of new/changed files that I can pass as parameters to tar and then take a tar file on a USB stick with the new files.
I know I could run "find ." on both sides and then compare the output files, but I'd prefer something less hacky if possible.
-- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ _______________________________________________ luv-main mailing list luv-main@luv.asn.au http://lists.luv.asn.au/listinfo/luv-main

Russell Coker <russell@coker.com.au> writes:
Is there a way of getting rsync to just list what it would do without doing anything? Failing that is there any other way to get a list of changes between two trees of files where one of them is remote?
I've got an archive of 30G+ of video files that needs to be synchronised occasionally with a system that has limited quota.
I assume this means you have a limited *network* quota, i.e. you cannot simply run rsync, because even a --dry-run -i would transfer significant data. I had such a situation when trying to update a mirror of Debian's repo, to a site that had only 33kbps. The way I solved this was to keep TWO copies of the repo locally -- one that was as at the last sync, and one as at today. Then, do an rsync --only-write-batch between them -- this is a local rsync -- and post the resulting file to the site on a CD. Then, sshing over the 33kbps line, I would run rsync --read-batch to apply the patch on the far end (from the CD). This worked out quite well, but assumes that only one side has changes. Otherwise, it doesn't work and you're screwed. Also, this was at at Ubuntu 8.04 and it had an exciting feature where if you use UUIDs in fstab, and you reboot with an LVM snapshot still present, it will prefer the snapshot over the origin. Meaning that for months (until the snapshot ran out of space) I was accidentally editing the snapshot instead of the origin. That was "interesting times"...
participants (5)
-
Chris Samuel
-
James Harper
-
John Mann
-
Russell Coker
-
trentbuck@gmail.com