Emergency

tmp dir confusion

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • tmp dir confusion

    Hi, If I am using innobackup with xbstream to backup to an nfs mount is it better to use a local temp dir or a dir on the nfs mount? ie if
    /nfs is destination nfs mount should I use

    innobackupex --xbstream /tmp > /nfs/backup.xbstream
    or
    innobackupex --xbstream /nfs > /nfs/backup.xbstream

  • #2
    The command should be
    Code:
    --stream=xbstream
    https://www.percona.com/doc/percona-...kx_stream.html

    But to avoid problems when you hit connection issues with your NFS at the time of a backup, we tend to recommend to backup to your local drive and the cp the backup to the NFS after
    Code:
    innobackupex --stream=xbstream ./ > /path/to/local/backup_dir/backup.xbstream
    Once backup completes, mv or cp the file to the NFS mount

    Comment


    • #3
      thanks, so with the command you provided the backup is initially written to ./ and then "tarred" and moved to /path/to/local/backup_dir/backup.xbstream?

      Comment


      • #4
        Yes, if you want you can specify it:

        Code:
        innobackupex --stream=xbstream /tmp > /path/to/local/backup_dir/backup.xbstream
        This way temporary files are created in the /tmp directory.

        Comment


        • #5
          thx, I guess it just seems odd that you need to specify a temp dir to stream to stdout

          Comment

          Working...
          X