Auto remove old backup from FTP

Questions about Cobian Reflector
Post Reply
Maloupi
Posts: 3
Joined: 24 Aug 2022, 09:28

Auto remove old backup from FTP

Post by Maloupi »

Hi,

First thank you to revive your backup software, this is an excellent work :-)

I have a problem when uploading a backup to ftp.
I said i wanted to keep only x backup but old backups are not removed.
This was working well in Cobian Backup.
Is this a bug or i do not set the good configuration ?

Best regards
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Auto remove old backup from FTP

Post by cobian »

No idea. What kind of server? What does the verbose log say?
--
Luis Cobian
Cobian Backup's creator
Maloupi
Posts: 3
Joined: 24 Aug 2022, 09:28

Re: Auto remove old backup from FTP

Post by Maloupi »

The computer with Cobian Reflector 1.0 is a windows 10 machine and the ftp server is a Rocky Linux 8 with Pure-FTPd on the same local network.
Here is the log of Reflector :

Code: Select all

2022-08-24 07:41:08 The monolithic archive "C:\Windows\TEMP\Backup FTP local.zip" has been created. Files in archive: 171486. Folders: 9893. Ignored files: 0  Uncompressed size: 45,52 GB
    2022-08-24 07:41:08 Connecting to 192.168.1.113:21...
    2022-08-24 07:41:08 Connected to 192.168.1.113:21.
    2022-08-24 07:41:08 Logged in into the remote server.
    2022-08-24 07:43:02 Uploading the file "C:\Windows\TEMP\Backup FTP local.zip" to "/"...
ERR 2022-08-24 07:45:57 An error occurred while uploading the file "C:\Windows\TEMP\Backup FTP local.zip" to "/": Unknown command (code=500)
    2022-08-24 07:45:57 Disconnected from 192.168.1.113.
     
    2022-08-24 07:45:57 *  Backup part for the task "Backup FTP local" has ended  *
    2022-08-24 07:45:57 *  Number of backed up files: 0. Backup part size: 0 bytes.  *
    2022-08-24 07:45:57 Deleting the temporary archive "C:\Windows\TEMP\Backup FTP local.zip"...
    2022-08-24 07:45:59 The temporary archive "C:\Windows\TEMP\Backup FTP local.zip" has been successfully deleted.
    2022-08-24 07:45:59 Deleting some full backups and associated differential/incremental backups. Reason: maintaining only 8 non-parked full backup sets.
    2022-08-24 07:45:59 The backups have been deleted. Actual files may be being deleted on a background thread.
     
    2022-08-24 07:45:59 ** Backup for the task "Backup FTP local" has ended **
    2022-08-24 07:45:59 ** Processed files: 171486. Backed up files: 171485. Created folders: 0. Backup size: 0 bytes. **
    2022-08-24 07:45:59 ** Number of errors: 1. Time elapsed: 9 hours, 45 minutes, 31 seconds. **
     
    2022-08-24 07:45:59 Deleting the Volume Shadow Copy image...
ERR 2022-08-24 07:45:59 Couldn't complete the deletion of files on a remote server: Unable to determine if file '' exists.
    2022-08-24 07:45:59 The Volume Shadow Copy image has been successfully deleted.
     
    2022-08-24 07:46:00 The backup has ended. There are errors. Consult the log file.
Here is the log of the FTP server :

Code: Select all

192.168.1.111 - backup_arco [24/Aug/2022:07:45:57 +0200] "PUT /mnt/hd2/ftp/backup_arco/Backup%20FTP%20local-2022.08.23-22.00.30%20%28Full%29.zip" 200 20619461051
And :

Code: Select all

Aug 24 07:41:07 srv-aur-bak pure-ftpd[3797]: (?@192.168.1.111) [INFO] New connection from 192.168.1.111
Aug 24 07:41:08 srv-aur-bak pure-ftpd[3797]: (?@192.168.1.111) [INFO] backup_arco is now logged in
Aug 24 07:45:57 srv-aur-bak pure-ftpd[3797]: (backup_arco@192.168.1.111) [NOTICE] /mnt/hd2/ftp/backup_arco//Backup FTP local-2022.08.23-22.00.30 (Full).zip uploaded  (20619461051 bytes, 114968.11KB/sec)
Aug 24 07:45:57 srv-aur-bak pure-ftpd[3797]: (backup_arco@192.168.1.111) [INFO] Logout.
Aug 24 07:45:58 srv-aur-bak pure-ftpd[3801]: (?@192.168.1.111) [INFO] New connection from 192.168.1.111
Aug 24 07:45:58 srv-aur-bak pure-ftpd[3801]: (?@192.168.1.111) [INFO] backup_arco is now logged in
Aug 24 07:45:58 srv-aur-bak pure-ftpd[3801]: (backup_arco@192.168.1.111) [INFO] Logout.
What i see is that the backup is not sent completely, only 20 GB instead of 45 GB

Maybe cutting the backup file in smaller pieces like 15 GB each is a solution but i did not see where i can set such en option.

Best regards
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Auto remove old backup from FTP

Post by cobian »

Try to activate the keep alive options for both data and command channels. It seems like a timeout problem to me.
--
Luis Cobian
Cobian Backup's creator
Maloupi
Posts: 3
Joined: 24 Aug 2022, 09:28

Re: Auto remove old backup from FTP

Post by Maloupi »

Hi,

Thank you.
Keep alive seems to be already enabled.
I'll make more tests and i'll come back.
anchise
Posts: 1
Joined: 12 Sep 2022, 10:14

Re: Auto remove old backup from FTP

Post by anchise »

Hello, I have the same problem, it does not delete my old backups and gives me the following error:
ERR 2022-09-11 23:21:36 Unable to complete file deletion on a remote server: VISURE: Directory not empty (code = 550)
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Auto remove old backup from FTP

Post by cobian »

Are there any hidden files in those directories?
--
Luis Cobian
Cobian Backup's creator
Post Reply