Menu

#3 list of files for backup

open
nobody
None
5
2002-11-08
2002-11-08
No

I would like to manually supply a list of filenames
that should be considered for backup by cdbkup (instead
of DUMPDIR and --exclude).

What about a command line option (say -f for
"filenames") for a file that contains this list?

Regards,
Joachim Reichel

Discussion

  • Mike M. Volokhov

    Logged In: YES
    user_id=408183

    It's partially implemented in cdbkup-current, which is derived from cdbkup-automated branch. There is a sample
    fragment of my backups:

    --- cut of cdbkup.conf ---
    [TSERV.settings]
    RemoteHost = tserv
    DumpDirs = << -OPTS-
    /etc
    /home/ftp/pub/avp
    /home/httpd/conf
    /home/php/etc
    /opt/AVP
    /usr/local/squid/etc
    /usr/src/WORK
    /var/spool/cron/crontabs
    -OPTS-
    Excludes = /opt/AVP/bases /opt/AVP/updates
    --- end of cut ---

    Unfortunately, due to unclean implementation it must be rewritten in future and is kept in CVS repository only.

    Next, cdbkup-1.0 already includes -X option for file of excludes list. For dump dirs another hint may be create some directory and then place there symbolic links to all files to be should backed up. In this case only one directory must be specified.

    If you have in mind something else, please feel free to sent all questions to us.

    --
    BR, Mishka.

     
  • Joachim Reichel

    Joachim Reichel - 2003-01-09

    Logged In: YES
    user_id=28760

    (BTW, the -X option is -e in 1.0 and -x in HEAD)

    I don't want to exclude a small number of files or
    directories. What I have in mind is the following:

    Usually, my source code is controlled with CVS. However, I
    cannot always commit my changes without doing harm to other
    developers (does not compile, needs cleanup, or whatever
    reason). That's the reason I would like to backup my checked
    out CVS files, but I don't want to backup all the object
    files and executables. I thought of creating a list of files
    (with e.g. find) and apply some filters, e.g. "remove all
    foo.o files if there is foo.[cC]" or "remove all files foo
    if there is a file foo.o". The remaining files should then
    be passed to cdbkup.

    (Ok, in principle, this could be done with a lot of -e
    options ...)

    Regards,
    Joachim

     
  • Mike M. Volokhov

    Logged In: YES
    user_id=408183

    Ah! I'll see now. I hope this will be done in new cdbkup-2.0 (a.k.a. "modular"), but today it is just in ideas. However,
    you propositions already in our TODO list.

    Maybe in you case a regular expressions can help you.
    Currently @excludes passed through few checks, and
    changes you need should be made across all the cdbkup
    file. That checks will prevent use regex characters in
    excludes list. If you want I can did patch file for you,
    or if you have such one, please sent it to me to made
    it world available. But I didn't want make such changes
    permanent.

    Thanks in advance for you feed back.

    --
    Mishka.

     

Log in to post a comment.