https://bugzilla.samba.org/show_bug.cgi?id=6667

           Summary: proposal: --transaction
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: way...@samba.org
        ReportedBy: d...@yost.com
         QAContact: rsync...@samba.org


someday, perhaps with zfs, file system APIs will offer transaction wrapper
functions, something like fio_begn(), fio_cancel(), fio_commit().

In the meantime (another 10 years?) until that happy day arrives, rsync could
fake an almost transactional update in the following manner: instead of
creating hidden files as you go, create a hidden directory at the root of the
tree containing all files being transferred. Populate this new tree with
transferred files, then when all have been transferred, hard link all the rest
of the files from the existing tree into the new tree. Finally, rename the
existing tree to a backup name, rename the new tree into place, then rm -rf the
renamed old tree.

--transaction and --partial would work well together.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to