• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

specify Maximum number of backups in the repository in pleskbackup

Peter Downes

Basic Pleskian
Hello Community

I have set up a custom back up of my VPS server.

/usr/local/psa/bin/pleskbackup server --prefix="VPS" --skip-logs --exclude-domain=mydomain.eu --output-file=ftp://myotherdomain.com/VPS-Backup/ --ftp-login=username --ftp-password=************* --ftp-passive-mode

And I have made this a scheduled task in the Plesk Admin.

All good.

How/Where do I specify the 'Maximum number of backups in the repository' so that the Back Ups don't stack up in the myotherdomain.com account.?

Can I do so by adding an instruction to the command above or through Plesk?
Thanks
 
Hallo,

I'm not familiar with the CLI-Command. But why do you not use the Plesk Backup-Manager via GUI to define the FTP-Backup? There you can define a maximum number as well
 
Thanks Thomas

I need to exclude one account on the VPS which has a very large file that does not need backing up.
I don't think I can exclude an account using the GUI.
 
Oh, I haven't seen the exclude-option. You're right. I doubt that you can manage that via the GUI. And I also doubt that you can define the number via GUI. So you have to write a Little script that manage that by yourself.
 
That looks like it. Thank you IgorG

Sorry I am a real beginner.

Would I run that as part of the CLI command above like this?
/usr/local/psa/bin/pleskbackup server --prefix="VPS" --skip-logs --exclude-domain=mydomain.eu --output-file=ftp://myotherdomain.com/VPS-Backup/ --ftp-login=username --ftp-password=************* --ftp-passive-mode server_pref -u -max-backup-processes 5
 
It is two different commands. With server_pref utility you can specify max number of backups server wide and run it once. With pleskbackup utility you can perform backup procedures.
 
Back
Top