How to set a custom AutoFTP backup schedule in SolusVM?

Applicable to:

  • SolusVM

Question

How to set a custom AutoFTP backup schedule in SolusVM?

Answer

SolusVM provides only daily, weekly, and monthly options.

As a workaround, it is possible to create a cron task with a custom schedule:

  1. Connect to the Slave Node via SSH.
  2. Create a crontask running AutoFTP backup (for example, every 3 days):

    # cat /etc/cron.d/solusvm_custom_backup
    # Custom cron job to execute auto ftp backup every three days:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    0 0 */3 * * root nice -n 19 ionice -c2 -n4 /usr/bin/php /usr/local/solusvm/includes/autoftpbackup.php

Note: adjust nice and ionice values according to your needs (refer to the SolusVM AutoFTP Backup guide for settings description). The rest of the values will be used automatically, based on the values in SolusVM > Nodes > node_name > Auto FTP Backup:
example.JPG

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.