Results 1 to 3 of 3

Thread: Allow Amanda (GNUTAR) to follow symlinks

  1. #1
    Join Date
    Jan 2015
    Posts
    4

    Default Allow Amanda (GNUTAR) to follow symlinks

    Hi,

    I'm trying to configure Amanda 3.3.6 to follow symlinks during backup. I end up with this solution:

    Code:
    define application-tool app_amgtar {
        plugin "amgtar"
        property "COMMAND-OPTIONS" "--dereference"
    }
    
    define dumptype global {
      ssh_auth
      program "APPLICATION"     # Program name for compress
      application "app_amgtar"
      ...
    }
    It seems to work, GNUTAR did the backup by following symlinks, but I'm afraid this config can have some side effect...

    • Somebody has already tried this solution for symlink backup ? Is it correct ?
    • Is there any issue to do that with other Amanda tools, like calcsize for example ?

  2. #2
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    yep, calcsize will not follow the link and use the size of the link itself, better not use it for estimate.

    On restore, you will get a copy of the file, not the symlink.

    The default amgtar also use '--one-file-system', so I'm not sure what is the result if the symlink is to another filesystem.

  3. #3
    Join Date
    Jan 2015
    Posts
    4

    Default

    Thanks, it's clearly a bad idea and i will try a workaround, like simply define a specific dumptype for this host...
    I have more than 30 hosts with the identical folder structure and the Amanda config is generated by Ansible, but i can add an exception for the one with symlinks.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •