Re: Backup for specific files

2006-07-14 Thread Paul Bijnens

On 2006-07-13 15:52, silpa kala wrote:

Hi,

I am trying to take the backup for
.log/.txt/executable file name. But the planner is not
able to provide the estimations. 


I observed that only we can take the backup for the
directories. Why this one is happening?

Please provide the details is there any restrictions
to provide to take the backup for the file type?


Amanda uses (currently) two external program to do the actual
backup: dump (several flavours actually), and gnutar.

As an intelligent person, you can quickly hunt through the source
tree and find the places where those programs are executed.

There you see that the several flavours of dump actually
need (device name of) a partition. So here it is impossible
to backup one file (or even part of partition).
The place where gnutar is invoked is also easily spotted, and
you'll see that the command line is assembled as:
  gnutar ... --directory /the/dle/name ...

And then you understand that /the/dle/name needs to be a
directory, and not a file.

But if you want to backup one file, there is a simple solution
too, by using a DLE like:

   client.example.com  /path/to/file  /path/to {
comp-user-tar
include "./file"
}

Using the manpages, you'll understand what the above syntax
is all about, and seeing the source code, you'll also understand
how that works to accomplish what you're trying to do.


--
Paul Bijnens, xplanation Technology ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* 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, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***



Re: Backup for specific files

2006-07-13 Thread Olivier Nicole
> Please provide the details is there any restrictions
> to provide to take the backup for the file type?

Amanda is design to backup directories and file systems, not just
individual files.

Beside, it is a way better idea to backup any file in a directory
except a few one we are sure that we don't want, rather than to have
to explicetly define a list of the files we want.

If new file types are added, in the first approache we may end up
backuping it even if we don't want them, in the second approach we
would not backup them while we do need a backup.

Exclude list is the safe awy of doing it.

Olivier