Hi,
I'm using wput to make backups of my VM's. In order to do this I have a script to stop, copy and restart them that works.
Host running wput 0.6.2: Ubuntu 16.04 LTS kernel 4.15.0-91-generic
VM is the same
To copy the vm when stopped I have this line in the script:
wput --append-output=$logfile --tries=3 --reupload $sourcedir ftp://Server3:$FTPpw@192.168.111.200$FTPdir
parameters:
now=$(date +"%y%m%d")
logfile=/var/log/Team1/SERVER3Backup_$now.log
sourcedir="/home/petervg/VM/SERVER3/*"
FTPpw=mypassword
FTPdir=/DatabaseBackups/VM/SERVER3_BACKUP/
When looking at the log file I can see the correct vm is stopped, copied and restarted but wput skips either part of some files or files alltogether. This causes the VM not to be copied completely.
This is the exact output of the wput command in the logfile (attached), but most files are either completely skipped or partially skipped:
--18:31:24-- /home/petervg/VM/SERVER3/xubuntu-16.04.3-desktop-amd64 SERVER3.vbox'
=> ftp://Server3:xxxxx@192.168.111.200:21/DatabaseBackups/VM/SERVER3_BACKUP//home/petervg/VM/SERVER3/xubuntu-16.04.3-desktop-amd64 SERVER3.vbox
Length: 6,662 [1,030 to go]
[ skipped 5K ]
0K ,,,,,,
18:31:24 (xubuntu-16.04.3-desktop-amd64 SERVER3.vbox) -
1.76M/s' [6662]
Before I enter a bugreport, I'ld like to make sure I didn't make any mistakes.
With kind regards