Score:0

rsync: updated files to new folder

cn flag

rsync allows to copy/synchronize folders without transferring files that already have been synchronized before and that did not change since last run. For that, you typically have to specify the source and target destination, and the updates are directly applied on the target destination.

What I intend to do: have the same functionality as described above, except that the changes (and only the changes) are written to a new target destination (empty folder), without modifying the old target destination at all.

Does rsync provide that functionality at all? I know about rsnapshot, but would like to go without it. I also don't worry about more than one sync run.

Zareh Kasparian avatar
us flag
maybe "--compare-dest" is what you are looking for.
Score:0
my flag

You can do that with --link-dest. You have the source tree t1, the last backup tree t2, and the current backup destination tree t3. If a file in t1 already exists in t2, so it is not transferred in t3 : a hard link is just created in t3 to that file in t2. https://github.com/JacquelinCharbonnel/rocknroll.git is a tools that use --link-dest (like rsnaphot too).

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.