• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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