Remote Backup FTP old files not deleted
Posted: Sun 6. Jun 2021, 11:32
Hi,
The old backups are not deleted on the ftp, however I have set maximum number of files in remote repository to 7
The ftp account used has the rights to delete files
From "Stored backups" -> "Remote", I can delete old files
Keyhelp version: 21.0 (Build 2195)
Operating system: Debian 10.9 (64-bit)
Keyhelp backup logs :
Remote FTP server log
Best regards
The old backups are not deleted on the ftp, however I have set maximum number of files in remote repository to 7
The ftp account used has the rights to delete files
From "Stored backups" -> "Remote", I can delete old files
Keyhelp version: 21.0 (Build 2195)
Operating system: Debian 10.9 (64-bit)
Keyhelp backup logs :
Code: Select all
====
[05-Jun-2021 02:00:01] INFO --> start backup process, task ID: "36"
[05-Jun-2021 02:00:01] INFO --> prepare processing dir
[05-Jun-2021 02:00:01] INFO --> deleteDirectory(): the directory "/backup/processing/task-36/" does not exists
[05-Jun-2021 02:00:01] INFO --> write pid file
[05-Jun-2021 02:00:01] INFO --> check remote connection
[05-Jun-2021 02:00:02] INFO --> estimate disk space needed for this job
[05-Jun-2021 02:00:02] INFO --> write "allocated" file
[05-Jun-2021 02:00:02] INFO --> free: 91,021.54 MiB
[05-Jun-2021 02:00:02] INFO --> reserve: 4,988.62 MiB (5%)
[05-Jun-2021 02:00:02] INFO --> this backup task: 569.22 MiB
[05-Jun-2021 02:00:02] INFO --> all running backup tasks: 569.22 MiB
[05-Jun-2021 02:00:02] INFO --> generate archive directories
[05-Jun-2021 02:00:02] INFO --> backup type is "server"
[05-Jun-2021 02:00:02] INFO --> backup config
[05-Jun-2021 02:00:03] INFO --> backup user databases
[05-Jun-2021 02:00:03] INFO --> backup non-user databases
[05-Jun-2021 02:00:04] INFO --> backup home directories
[05-Jun-2021 02:00:04] INFO --> backup mail directories
[05-Jun-2021 02:00:04] INFO --> create one backup file
[05-Jun-2021 02:00:04] INFO --> file name is /backup/processing/task-36/server-servername-20210605020004.7z
[05-Jun-2021 02:00:04] INFO --> compressing file
[05-Jun-2021 02:00:04] INFO --> ... with compressing level set to: "fast"
[05-Jun-2021 02:00:10] INFO --> compressing done
[05-Jun-2021 02:00:10] INFO --> sha1 checksum: ba749e2fe35649618f61ed6dc49d34ffe635c8a3
[05-Jun-2021 02:00:10] INFO --> remove archive directory
[05-Jun-2021 02:00:10] INFO --> deleteDirectory(): perform rm -rf /backup/processing/task-36/archive/
[05-Jun-2021 02:00:10] INFO --> move file to remote repository
[05-Jun-2021 02:00:10] INFO --> apply rotation - keep max. 7 file(s) in repository
[05-Jun-2021 02:00:11] INFO --> no files on remote server found
[05-Jun-2021 02:00:13] INFO --> cleanup
[05-Jun-2021 02:00:13] INFO --> deleteDirectory(): perform rm -rf /backup/processing/task-36/
[05-Jun-2021 02:00:13] INFO --> backup finished
====
[06-Jun-2021 02:00:02] INFO --> start backup process, task ID: "37"
[06-Jun-2021 02:00:02] INFO --> prepare processing dir
[06-Jun-2021 02:00:02] INFO --> deleteDirectory(): the directory "/backup/processing/task-37/" does not exists
[06-Jun-2021 02:00:02] INFO --> write pid file
[06-Jun-2021 02:00:02] INFO --> check remote connection
[06-Jun-2021 02:00:02] INFO --> estimate disk space needed for this job
[06-Jun-2021 02:00:03] INFO --> write "allocated" file
[06-Jun-2021 02:00:03] INFO --> free: 91,032.87 MiB
[06-Jun-2021 02:00:03] INFO --> reserve: 4,988.62 MiB (5%)
[06-Jun-2021 02:00:03] INFO --> this backup task: 569.22 MiB
[06-Jun-2021 02:00:03] INFO --> all running backup tasks: 569.22 MiB
[06-Jun-2021 02:00:03] INFO --> generate archive directories
[06-Jun-2021 02:00:03] INFO --> backup type is "server"
[06-Jun-2021 02:00:03] INFO --> backup config
[06-Jun-2021 02:00:03] INFO --> backup user databases
[06-Jun-2021 02:00:03] INFO --> backup non-user databases
[06-Jun-2021 02:00:04] INFO --> backup home directories
[06-Jun-2021 02:00:05] INFO --> backup mail directories
[06-Jun-2021 02:00:05] INFO --> create one backup file
[06-Jun-2021 02:00:05] INFO --> file name is /backup/processing/task-37/server-servername-20210606020005.7z
[06-Jun-2021 02:00:05] INFO --> compressing file
[06-Jun-2021 02:00:05] INFO --> ... with compressing level set to: "fast"
[06-Jun-2021 02:00:11] INFO --> compressing done
[06-Jun-2021 02:00:11] INFO --> sha1 checksum: 0ad92c068ed536726634a4f7e2adb78acfff8fb3
[06-Jun-2021 02:00:11] INFO --> remove archive directory
[06-Jun-2021 02:00:11] INFO --> deleteDirectory(): perform rm -rf /backup/processing/task-37/archive/
[06-Jun-2021 02:00:11] INFO --> move file to remote repository
[06-Jun-2021 02:00:12] INFO --> apply rotation - keep max. 7 file(s) in repository
[06-Jun-2021 02:00:12] INFO --> no files on remote server found
[06-Jun-2021 02:00:14] INFO --> cleanup
[06-Jun-2021 02:00:14] INFO --> deleteDirectory(): perform rm -rf /backup/processing/task-37/
[06-Jun-2021 02:00:14] INFO --> backup finished
====
Code: Select all
Jun 6 02:00:02 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] New connection from KEYHelp-Server
Jun 6 02:00:02 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES128-GCM-SHA256, 128 secret bits cipher
Jun 6 02:00:02 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] ftp-user is now logged in
Jun 6 02:00:02 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES128-GCM-SHA256, 128 secret bits cipher
Jun 6 02:00:02 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [NOTICE] /home/backup//server-name/keyhelp-remote-test.dat uploaded (21 bytes, 0.40KB/sec)
Jun 6 02:00:02 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [NOTICE] Deleted /home/backup//server-name/keyhelp-remote-test.dat
Jun 6 02:00:02 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [INFO] Logout.
Jun 6 02:00:11 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] New connection from KEYHelp-Server
Jun 6 02:00:11 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES128-GCM-SHA256, 128 secret bits cipher
Jun 6 02:00:12 my-ftp pure-ftpd: (?@KEYHelp-Server) [INFO] ftp-user is now logged in
Jun 6 02:00:12 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES128-GCM-SHA256, 128 secret bits cipher
Jun 6 02:00:12 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [INFO] TLS: Enabled TLSv1/SSLv3 with ECDHE-RSA-AES128-GCM-SHA256, 128 secret bits cipher
Jun 6 02:00:14 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [NOTICE] /home/backup//server-name/server-server-name-20210606020005.7z uploaded (61661490 bytes, 25824.61KB/sec)
Jun 6 02:00:14 my-ftp pure-ftpd: (ftp-user@KEYHelp-Server) [INFO] Logout