--backup leaves window where file doesn't exist.

This is a discussion on --backup leaves window where file doesn't exist. within the Rsync forums, part of the Networking and Network Related category; When using --backup, the sequence (as monitored by strace) is: rename("/path/to/<file>", "<...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2005
Dave Mielke
 
Posts: n/a
Default --backup leaves window where file doesn't exist.

When using --backup, the sequence (as monitored by strace) is:

rename("/path/to/<file>", "<backup-dir>/<file><backup-suffix>")
rename("/path/to/.<file>.xxxxxx", "/path/to/<file>")

This, of course, leaves a momentary window wherein <file> can't be found. Might
it be possible to replace the first rename() with link() instead? This, of
course, could only be done when the backup directory is on the same volume.

--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: dave@mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://FamilyRadio.com/ | http://Mielke.cc/bible/
--
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 With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0