Transfer Backup via Rsync

Discussion in 'Tips/Tricks/Mods' started by ZeroEnna, Feb 28, 2016.

  1. ZeroEnna

    ZeroEnna Member

    Hello everyone,

    I'm running two servers with Debian 8 and ISPConfig 3. Currently, I run a cronjob with which I backup databases and websites manually. The built-in functionality provides the possibility to copy the backupped files to the backup folder of the website, but what I want is to transfer the files to an external Storage via rsync (like I do right now).

    Can anyone help me with this? As a starting point It would be great to know where ISPConfig saves the backups, so I can run an Rsync-Script vis root-cronjob.

    Thank you very much in advance.

    Kind Regards

  2. Active Member

    The backups are in the domains subfolder "backup".
  3. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    The backup-function stores your backups in the path defined on the server (not domains subfolder) like /var/backup.
    You can resync /var/backup to any destination.
  4. Active Member

    indeed, I was wrong did I just mix something or were I just in a different universe? :( :D
  5. ZeroEnna

    ZeroEnna Member

    Is there any way to "get them back"?
    I mean, if you have a website that is 5GB heavy, and you have 7 Backups, that's 35 GB....
    So, is there any way to transfer them to a remote storage, and then re-transfer the file if the customer requests it without having to manually do anything?

    Like: The server is set to create ONE Backup, a cronjob automatically scp's the file to a remote storage. The customer asks to have a backup that is 5 days old. The admin transfers the file back to the server, and ISPconfig automatically detecs the backup and allows the customer to download it.

    That would be great and enough for my needs
  6. Jesse Norell

    Jesse Norell Active Member

    can you just mount the remote storage at /var/backups?
  7. DDArt

    DDArt Member HowtoForge Supporter

    I use s3cmd to Amazon S3 bucket and it is fairly cheap. I do nightly at midnight or past that. I also backup nightly all my mysql databases compressed each in its own *.tar.gz as well as emails, compressing them based on domains into /var/backups and after, my entire /var/backup(s) gets sent to amazon. The bill is so low it's more than a cup of mocha per month for your 30+ gigs.

Share This Page