Jhhw Feb 22 4:46PM 2017
Here is the log when trying to backup sftp to a Nas.
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a] ./vertical backup Ubnt
Vertical Backup 0.3.1
Licensed to j*@.com (Beta Testing); expires on 2018-02-13
vertical@192.168.0.8's password (leave blank to choose public key authentication):
Storage set to sftp://vertical@192.168.0.8/Vertical
Listing all virtual machines
Backing up Ubnt, id: 4, vmx path: /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmx, guest os: ubuntu64Guest
No previous backup found
Virtual machine Ubnt is powered on
Removing all snapshots of Ubnt
Creating a new virtual machine snapshot for Ubnt
Uploaded file /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmdk
Uploading file Ubnt-flat.vmdk
Uploading --------------------------------------------- 18.13MB/s 00:18:47 0.2%
Failed to create the directory 'Vertical/chunks/be': File already exists
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a]
Jhhw Feb 22 5:49PM 2017
Well, I changed over to a nfs datastore on the Nas instead of sftp and it worked. Not sure what the sftp issue is.
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a] ./vertical init HHWESX2 /vmfs/volumes/BigBoi/Vertical
Vertical Backup 0.3.1
Storage set to /vmfs/volumes/BigBoi/Vertical
Initialized the storage with a chunk size of 1048576
Preference has been saved to /vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a/.verticalbackup/preferences
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a] ./vertical back up Ubnt
Vertical Backup 0.3.1
Licensed to j*@.com (Beta Testing); expires on 2018-02-13
Storage set to /vmfs/volumes/BigBoi/Vertical
Listing all virtual machines
Backing up Ubnt, id: 4, vmx path: /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmx, guest os: ubuntu64Guest
No previous backup found. Listing existing chunks
Virtual machine Ubnt is powered on
Removing all snapshots of Ubnt
Creating a new virtual machine snapshot for Ubnt
Uploaded file /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmdk
Uploading file Ubnt-flat.vmdk
Uploaded file Ubnt-flat.vmdk 39.52MB/s 00:08:38
Uploaded file Ubnt.vmx
Uploaded file Ubnt.vmxf
Removing all snapshots of Ubnt
Backup Ubnt@HHWESX2 at revision 1 has been successfully completed
Total 20487 chunks, 20481.51M bytes; 3682 new, 3676.51M bytes, 1714.71M uploaded
Total backup time: 00:08:45
gchen Feb 22 7:10PM 2017
What is the model of your NAS and do you know the version of ssh server it is running? The backup failed because sftp returned an error other than SSH_FX_FAILURE when the directory to be created already exists. On all servers I tested against, the sftp always returns SSH_FX_FAILURE in this case (which we catch and ignore). Of course, "File already exists" sounds more right and could be a more recent change.
I'll fix it to handle this "File already exists" error.
gchen Feb 22 7:13PM 2017
Can you run the backup again with nfs and post results here? I wonder how fast the second backup can be after the initial one.
Jhhw Feb 23 3:22PM 2017
Pretty fast after the initial backup. It is just a plain install to test backup and restore on.
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a] ./vertical back up Ubnt
Vertical Backup 0.3.1
Licensed to j*@.com (Beta Testing); expires on 2018-02-13
Storage set to /vmfs/volumes/BigBoi/Vertical
Listing all virtual machines
Backing up Ubnt, id: 4, vmx path: /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmx, guest os: ubuntu64Guest Last backup at revision 2 found
Virtual machine Ubnt is powered on
Removing all snapshots of Ubnt
Creating a new virtual machine snapshot for Ubnt
Uploaded file /vmfs/volumes/Datastore1/Ubnt/Ubnt.vmdk
Uploading file Ubnt-flat.vmdk
Uploaded file Ubnt-flat.vmdk 238.71MB/s 00:01:25
Uploaded file Ubnt.vmx
Uploaded file Ubnt.vmxf
Removing all snapshots of Ubnt
Backup Ubnt@HHWESX2 at revision 3 has been successfully completed
Total 20487 chunks, 20481.51M bytes; 156 new, 153.33M bytes, 73.16M uploaded
Total backup time: 00:01:32
[root@HHWESX2:/vmfs/volumes/587a1427-8aa8b904-a3ec-9c8e9926f41a]
gchen Feb 24 10:41AM 2017
The 'File already exists' error has been fixed in version 0.3.3.