• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How do I add a ariable prefix to a manual backup?

SalvadorS

Regular Pleskian
Hello,

I am working on manual plesk backups. I read I can add a prefix to the backup adding: --prefix=<string>

The question is:

If I add --prefix=<friday> the backup is always called whateverfriday.tar.gz

I want to add a timestamp to every backup I make. If I do one on friday 20th February at 17.15.00

What I have to add as prefix (or suffix) in order to call my backyp whatever100220171500.tar.gz for example?
 
Not sure what do you mean. As you can see there is timestamp by default:

# /usr/local/psa/bin/pleskbackup domains-name domain.tld

# ll /var/lib/psa/dumps/clients/client/domains/domain.tld/
total 208
-rw-r----- 1 root root 11798 Feb 24 15:46 backup_domain.tld_info_1002241546.xml
-rw-r----- 1 root root 322 Feb 24 15:46 backup_domain.tld_mn_1002241546.tgz
-rw-r----- 1 root root 191722 Feb 24 15:46 backup_domain.tld_vhost_1002241546.tgz
 
Hello,

The question is when you do manual backup and leave it on a FTP.

You have to name the file:

perl /usr/local/psa/bin/pleskbackup --domains-name domain.tld --output-file=ftp://xxx.xxx.xxx.xxx/domain.tgz --ftp-login=login --ftp-password=password

If I set this every day, I have only one file call domain.tgz

If I want to have 10, I have to rename manually the file. It is possible to add this file a time stamp?
 
Back
Top