Results 1 to 7 of 7

Thread: NFS and Backups

  1. #1
    Join Date
    Apr 2016
    Posts
    43
    Points
    1,389
    Level
    14

    NFS and Backups

    Is it possible to change the location of where siteworx backups are made and store them on an NFS mount if possible?

  2. #2
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi Bertie

    I believe it could be changed but you maybe better just to rsync the backup to your nfs drive

    Iw has nfs as an option, which you could even move your /home directory to,

    Many thanks

    John

  3. #3
    Join Date
    Apr 2016
    Posts
    43
    Points
    1,389
    Level
    14
    Quote Originally Posted by d2d4j View Post
    Hi Bertie

    I believe it could be changed but you maybe better just to rsync the backup to your nfs drive

    Iw has nfs as an option, which you could even move your /home directory to,

    Many thanks

    John
    Is it possible to have like a /home2 so any new accounts would be stored on the /home2 directory instead then?

  4. #4
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi Bertie
    Many thanks, if I understand correctly, you want to create a new hosting folder called /home2 for any new accounts and leave the old hosting folder called /home, which is currently used for any previous siteworx accounts existent.
    The answer as far I understand it, would be no sorry
    Are you running out of space on the /home folder
    You could, as I said, use your NFS drive as the /home folder and move your existent /home to your NFS
    I suppose you could attempt to do your question, but in a lsightly different way, and that is rename the current /home to /home2, create a new /home (setting the perms etc correctly), and then you would have to manually change all the current vhost files paths to /home2 from /home.
    This is something I have not tried, and most likely could see potential issues by doing this, eg webmail, mail etc, so do so at your own risk
    I hope that helps
    Many thanks
    John

  5. #5
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi Bertie

    Sorry a thought which might work, could you symlink backup folder to your nfs

    It would need fully testing though

    Many thanks

    John

  6. #6
    Join Date
    Apr 2016
    Posts
    43
    Points
    1,389
    Level
    14
    Coming back to this - Is it actually possible to change the backup location for all of the SiteWorx accounts? We want to store the backups on an NFS share. I know they are all seem to be stored within their own "domains" folder at the moment?

  7. #7
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi Bertie
    Many thanks and I would probably open a support ticket to ask, been the best advice.
    I do believe it is possible though, with a little work from from yourself (see below) and you could script a cron job to backup as needed, and include the exact position of the backup made (note the option for backup location -o --output-dir (optional) value The directory where the completed backup will be saved.).
    I hope that helps a little
    Many thanks
    John
    ./backup.pex
    --domains parameter is required
    Usage: backup.php [-tofescb --all --compression --databases --email --exclude-exts --ftp --mail --no-disabled --quiet --reseller-id --siteworx --structure-only --web --xfer-bg --xfer-ini --xfer-method] < --domains>
    --all (DEPRECATED) Specifies a full backup of
    the SiteWorx account. This option is
    deprecated, and --backup-options should be
    used instead. This is here for backwards
    compatibility, and will be removed in a
    future release.
    -b --backup-options (optional)values Set what we should be backing up: (web =
    website files, mail = e-mail messages, db
    = database data, all = all of the above,
    no-logs = do not backup log files,
    no-stats = do not backup stats files,
    no-mail-content = do not backup mail
    messages, DEFAULT: all
    -c --chunk (optional)value The chunk number to process during the
    current run of the backup script
    (1)
    -s --chunksize (optional)value The number of backups to do during this
    run of the backup script.
    (200)
    --compression=<value> Compression level used when compressing
    final archive (6)
    --databases (DEPRECATED) include database data in the
    backup file. This option is deprecated,
    and --backup-options should be used
    instead. This is here for backwards
    compatibility, and will be removed in a
    future release.
    --domains values(1-...) The domain or list of domains to backup.
    You may enter multiple domain names
    separating them by spaces.You can also use
    a regular expression string to match
    multiple domain names (i.e. --domain
    "^iworx\.(.*)$")
    --email=<value> Backup status will be emailed to this
    address ()
    -e --exclude-dirs (optional)values A list of directories to exclude from
    thebackup, that may have been included
    normally.This path is relative to the
    webroot.(i.e., --exclude-dirs
    html/this/dir/)
    --exclude-exts (optional)values A list of extensions to exclude from
    thebackup, that may have been included
    normally.(i.e., --exclude-exts jpg gif)
    -f --filename-format=<value> Format of filename output: %D=domain name,
    %T=unix timestamp, %U = unix username, %R
    = reseller id, %t = backup type (full or
    partial), %H = hour, %M = minute, %S =
    second, %m = month (1..12), %d = day of
    month (1..31), %a = 3-letter day of week
    (Sun..Sat), %Y = 4-digit year
    --ftp (DEPRECATED) Indicates the backup file
    should be transferred via FTP. This
    option is deprecated, and --xfer-method
    should be used instead. This is here for
    backwards compatibility, and will be
    removed in a future release.
    --mail (DEPRECATED) include mail data in the
    backup file. This option is deprecated,
    and --backup-options should be used
    instead. This is here for backwards
    compatibility, and will be removed in a
    future release.
    --no-disabled Do not backup any domains that are
    disabled/inactive.
    -o --output-dir (optional)value The directory where the completed backup
    will be saved.
    ()
    --quiet (DEPRECATED) Specifies that a backup
    process should run quietly (no output).
    This option is deprecated, redirecting
    output to /dev/null should be used
    instead. This is here for backwards
    compatibility, and will be removed in the
    future
    --reseller-id (optional)value The id of the reseller (1)
    --siteworx (DEPRECATED) Specifies that a full backup
    should be stored in the default location.
    This option is deprecated, and simply
    omitting this option should be used
    instead. This is here for backwards
    compatibility, and will be removed in a
    future release.
    --structure-only Create a structure only backup. No data
    files will be backed up, only the manifest
    XML file will be created. This is useful
    for very large backupswhere moving the
    data manually would be easier.Can NOT be
    set along with 'backup-options' parameter
    -t --tmp-dir (optional)value The temporary directory where the backup
    will be created before the backup is moved
    into the finallocation.
    (/tmp)
    --web (DEPRECATED) include web data in the
    backup file. This option is deprecated,
    and --backup-options should be used
    instead. This is here for backwards
    compatibility, and will be removed in a
    future release.
    --xfer-bg Tells backup.pex to transfer the backup
    file in the background. Default behavior
    is to transfer in the foreground.
    --xfer-ini (optional)value Sets the transfer ini file to be used by
    the backup process.
    ()
    --xfer-method (optional)value Sets how the backups should be transfered
    to their final locations. Valid values
    are 'scp' or 'ftp'.If this option is not
    set, the backups will be saved locally to
    the hard drive, in the location specified
    with the the --output-dir parameter.
    ()

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
  •