• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Scheduled FTP backups and unwanted 'server repository' copies

KeithSav

New Pleskian
I am using 3 servers with Plesk 10 & 11 running 30+ websites. Each website has a scheduled account backup to a external FTP server. Every time the backups run a copy of the backup file gets stored in the 'Servers' repository. This occurs even though I have it set to only store the last 2 recent backups. As you can see this compounds local storage problems quickly. I may only have 2 backups on my FTP but 15-20 (since my last manual delete) in the servers repository.

Does anyone have a workaround or fix for this issue?
 
Deleting Backups

Usually if the backup has been moved to the FTP respitory successfully, then the local copy would be deleted.

Optionally, Set a Cron Job to clean the local backup Resp.
Code:
vim /root/bk_cleanup.sh
and add the following:

Code:
#!/bin/sh backup_dumps_delete#
# Delete backup more than 90 days old.
#
backupDir="/var/lib/psa/dumps"
#
daysToKeep=30
echo "Checking for files older than $daysToKeep days in $backupDir"
listOfFiles=`find $backupDir -mtime +$daysToKeep`
if [ ! -z $listOfFiles ]
then
echo "Found [$listOfFiles]"
else
echo "None found."
fi
for toDelete in $listOfFiles
do
echo "Deleting $toDelete"
rm -rf $toDelete
done
echo "Done.

then again,

crontab -e

and add the following line:

0 1 * * * sh /root/bk_cleanup.sh
 
Back
Top