tell me how rsync -b works
Conversation
Notices
-
Embed this notice
subleq (subleq@lonely.town)'s status on Friday, 22-Sep-2023 02:28:05 JST subleq -
Embed this notice
feld (feld@bikeshed.party)'s status on Friday, 22-Sep-2023 02:28:01 JST feld Hardlinks. See also: rsnapshot, which uses it to give you daily/weekly/monthly deduplicated backups at the file level.
Original idea here: http://www.mikerubel.org/computers/rsync_snapshots/
The tool it inspired: https://rsnapshot.org -
Embed this notice
Ayo (ayo@lonely.town)'s status on Friday, 22-Sep-2023 02:28:03 JST Ayo @subleq :meowsignno:
In conversation permalink -
Embed this notice
feld (feld@bikeshed.party)'s status on Friday, 22-Sep-2023 03:33:35 JST feld ahh wtf you're right i thought it was -b and --backup-dir but it's --link-dir for the hardlinks???
what does it even do? i can't tell at the moment, i need to trace it. does it perhaps quickly do a hardlink/copy to a local dir before the transfer so the files don't change?
i need to dig through the source code now too...In conversation permalink -
Embed this notice
Ayo (ayo@lonely.town)'s status on Friday, 22-Sep-2023 03:33:37 JST Ayo @feld @subleq
Uhm. rsync -b doesn't do hardlinks, it just creates a copy of an existing file before overwriting it...In conversation permalink
-
Embed this notice