1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Create Scheduled Backup with Cron

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Daniel Homoki-Farkas, Jul 15, 2010.

  1. Hi,

    I'm trying to create a scheduled backup of all my clients on the server. I would like to put every backup file, to the backup folder, found in the ROOT, so: /backup

    I'm using the following, to the command line:
    /usr/local/psa/bin/pleskbackup <clients>

    And I get this message, through email:
    /bin/sh: -c: line 0: syntax error near unexpected token `newline'
    /bin/sh: -c: line 0: `/usr/local/psa/bin/pleskbackup <clients>'

    My aim is to backup every client on the server.
    But if there is any solution, to backup only the httpdoc-s, and the databases of EVERY domain, than I rather go for that one.

    If someone knows the command line's code for this problem, than please help.

    Kind regards,

  2. IgorG

    IgorG Forums Analyst Staff Member

    Oct 27, 2009
    Likes Received:
    Novosibirsk, Russia
    Look at output of

    # /usr/local/psa/bin/pleskbackup --help

    and correct your command according it.
  3. Hi,

    Thanks, that is working.

    Now I would like to create a backup with cron, to my backup, and storage device, through FTP...

    The command line is the following:
    /usr/local/psa/bin/pleskbackup domains --ftp-login=usuireiki@admin2.netkert.hu --ftp-password=Password --output-file=/private/crontab_backup.tar

    But I keep getting the following email, from Cron Daemon:
    *** You are using old-style pleskbackup command-line interface. ***
    *** Please switch to new style documented in 'pleskbackup help',***
    *** because old style eventually have been dropped. ***

    I of course, did check the pleskbackup help, and did everything, as it is sayed over there, but it is still not working.

    Could you please send me a correct code, with the details provided?

    Thanks for your help in advance!

    Kind regards,

    Daniel Homoki-Farkas

    Ps.: This is not my storage device FTP details. I'm just using a single FTP connection, on an another server!