• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Create Scheduled Backup with Cron

  • Thread starter Daniel Homoki-Farkas
  • Start date
D

Daniel Homoki-Farkas

Guest
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,

Daniel
 
Look at output of

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

and correct your command according it.
 
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 [email protected] --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!
 
Back
Top