• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Invalid pleskbackup increment command

Zoler0

New Pleskian
Hello Plesk Forums,

I'm trying to setup automatic backups for my server. I'm running the latest plesk parallels. 12.5.30
Now I like to export the incremental backups towards a different location. So I use: --output-file=<fullpath/filename>

Using this documentation: http://docs.plesk.com/en-US/12.5/ad...ta/backup-utility-commands-and-options.68843/

Normal backup without --incremental works:
[root@server]# /usr/local/psa/bin/pleskbackup server --description="FULL server backup" --verbose --output-file="/var/lib/psa/tmp/full_backup.tar"

Incremental backup with--incremental does not work:
[root@server]# /usr/local/psa/bin/pleskbackup server --description="Incremental server backup" --verbose --incremental --output-file="/var/lib/psa/tmp/incremental_backup.tar"

The error I receive is:
The option --output-file must specify existing directory path to store incremental backup at /usr/local/psa/admin/bin/plesk_agent_manager line 922.

Now when I don't specify the filename when I do an incremental backup (Without incremental_backup.tar) it does work. Like this:
[root@server]# /usr/local/psa/bin/pleskbackup server --description="Incremental server backup" --verbose --incremental --output-file="/var/lib/psa/tmp/"

But I want my own specified filename...

Could you guys please fix this or give me alternatives to do?

Kind regards,
Zolero
 
You can't specify name of incremental backup because it is system task. Names of main and increment backups should follow certain rules. For example, I have created first backup:

[root@ppu12-5 ~]# /usr/local/psa/bin/pleskbackup server --description="Incremental server backup" --verbose --incremental --output-file=/var/lib/psa/dumps/
..Accounts [1/2], Domains [0/1]
Accounts [2/2], Domains [1/1]
Accounts [2/2], Domains [1/1]
Accounts [2/2], Domains [1/1]
-------------- Start print backup log hire --------------
<?xml version="1.0" encoding="UTF-8"?>
<execution-result status="success" log-location="/usr/local/psa/PMM/sessions/2016-04-14-101440.514/migration.result"/>
-------------- End print backup log hire --------------

You can view additional information in the log file located in /usr/local/psa/PMM/sessions/2016-04-14-101440.514 directory. This directory will be removed automatically after 30 days

The backup finished successfully
[root@ppu12-5 ~]# ll /var/lib/psa/dumps/
total 816
-rw-r--r-- 1 root root 400556 Apr 14 10:14 backup_1604141014.tar


Then I added database for one domain and created increment:

# /usr/local/psa/bin/pleskbackup server --description="Incremental server backup" --verbose --incremental --output-file=/var/lib/psa/dumps/
..Accounts [1/2], Domains [0/1]
Accounts [2/2], Domains [1/1]
Accounts [2/2], Domains [1/1]
-------------- Start print backup log hire --------------
<?xml version="1.0" encoding="UTF-8"?>
<execution-result status="success" log-location="/usr/local/psa/PMM/sessions/2016-04-14-101619.71/migration.result"/>
-------------- End print backup log hire --------------

You can view additional information in the log file located in /usr/local/psa/PMM/sessions/2016-04-14-101619.71 directory. This directory will be removed automatically after 30 days

The backup finished successfully
[root@ppu12-5 ~]# ll /var/lib/psa/dumps/
total 1128
-rw-r--r-- 1 root root 318636 Apr 14 10:16 backup_1604141014_1604141016.tar
-rw-r--r-- 1 root root 400556 Apr 14 10:14 backup_1604141014.tar

 
Back
Top