SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Q: prevent deleting existing files after recover a backup
Author Message
Post Q: prevent deleting existing files after recover a backup 
Hi,

i got a question.

When I recover a backup into a directory in which already files exist (others than in the Backup), Amanda deletes the existing files after the backup. I don’t want Amanda to do that.

Is it possible to prevent this?

Regards,
Sebastian

Post Q: prevent deleting existing files after recover a backup 
Sebastian

there's no way for the restore not to overwrite the files.

What I do is to cd to somewhere that's *not* the start point for the
backup, restore the files then mv them to where I need them to be
possibily with a new name eg fred.c.restore.



--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300


Sebastian Kösters wrote:
Hi,



i got a question.



When I recover a backup into a directory in which already files exist
(others than in the Backup), Amanda deletes the existing files after the
backup. I don’t want Amanda to do that.



Is it possible to prevent this?



Regards,

Sebastian


**********************************************************************

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.

**********************************************************************

Post Q: prevent deleting existing files after recover a backup 
Sebastian Kösters wrote:

When I recover a backup into a directory in which already files exist
(others than in the Backup), Amanda deletes the existing files after the
backup. I don’t want Amanda to do that.

Is it possible to prevent this?

There is difference when specifying to restore the directory, or
the files in it.
When you say to amrecover "add .", you specifyied you want to restore
the directory in the state as found on the backup. Newer files
will be deleted.

If you want to restore some files, you may say to amrecover
"add these*", or some other pattern.
In this case newer files are NOT deleted.

Note that "add *" adds the directory itself too, resulting in deleting
newer files. But "cd ..", followed by a "delete thedir" removes the
directory from the extraction list (and leaves the newer files
untouched when restoring).
I do find this a bug, but have not yet got time to implement a fix.

When using "amrestore -p | ..." it's up to you to specify what to
add in the extraction list.



--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens < at > xplanation.com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, Very Happy:Very Happy, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB