Bachir wrote:
> My goal is simpel: When restoring a fileset for a specified date
> (including "most recent"), BackupPC should give me exactly the files
> and directories that existed at the time of the last backup prior to
> that date.
>
> According to my several tests this doesn't works even if the last
> backup was a Full backup. Files and directories crated after a backup
> (full or incremental) will NOT be deleted during a restoration.
>
> For exempel: suppose taking a full backup of a directory including the
> files a1, b1, c1. Then delete the files a1, b1, c1 and create 3 new
> files instead a2, b2, c2 (in the same directory). Doing a direct
> restoration of the directory will give me a right copy of the files
> a1, b1 and c1. BUT the files a2, b2, c2 are still left in the same
> directory (which now will be including 6 files).
>
> To avoid this problem i tried to add "--delete" to
> $Conf{RsyncRestoreArgs} but the restoration failed with the following
> error:
>
> "
> Remote[1]: ERROR: buffer overflow in recv_rules [receiver]
> Remote[1]: rsync error: error allocating core memory buffers (code 22)
> at util.c(121) [receiver=2.6.9]
> Read EOF: Connection reset by peer
> Tried again: got 0 bytes
> Done: 301 files, 6183643 bytes
> restore failed: Unable to read 4 bytes
> "
>
> I guess this mean that rsyncp doesn't support the "--delete" option.
> Any workaround??
> Thank you for help!
For a workaround, how about restoring the files to an empty temporary
location.  Then use plain rsync with the --delete option to synchronize
your host with that temporary location.  For large backups, this may not
be feasible (time/space constraints), but it should work for relatively
small backups.

-Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to