####-#### NSX 5266 - [nsx@6876 comp="nsx-manager" errorCode="MP29111" s2comp="backup-restore" subcomp="manager"] Cluster backup failed with Status [status=URI_NOT_FOUND, statusDetail={"module_name": "node-services", "error_message": "Specified uri '/Users/Administrator/nsxbackup/#####/cluster-node-backups/4.1.2.#####-74af0842-####-####-####-adf3811321b5-192.168.#.10/backup-YYYY-MM-DDT10_59_07UTC/cluster_backup-74af0842-####-####-####-adf3811321b5-192.168.#.#-nsx-policy-manager.tar' not found.", "error_code": 36219}, startTime=15########704, endTime=157#######560].
####-#### NSX 86061 - [nsx@6876 comp="nsx-manager" errorCode="MP29115" level="ERROR" s2comp="backup-restore" subcomp="manager"] Cluster backup failed with ; BackupAsyncStatus [BackupStatus [status=AUTH_FAILURE, statusDetail=Cannot connect to sftp server. The remote server returned error: status: 255 out: '[Errno 5] Input/output error'.
Note: It has also been seen, when using Windows OpenSSH versions lower than the supported 8.1 version, there is also a 260 character limitation.
PUT /image/backup/cluster/backup_<UUID>_nsx-manager.tar /home/backup/cluster-node-backups/<NSX-version-UUID-IP/FQDN>/backup-<date-time>/cluster_backup-<UUIDIP/FQDN>-nsx-ufo-backup-restore.tar
VMware NSX 4.2 Configure Backups
VMware NSX-T Datacenter 3.2 Configure Backups
Test SFTP backup server:
A method to test if the SFTP server connection is working, correct permissions are applied and no file path length restrictions apply, is to use the following steps:
touch tmp.txtsftp <backup_user>@<sftp_server_ip>mkdir <backup_dir_given_in_backup_config>mkdir <backup_dir_given_in_backup_config>/cluster-node-backupsmkdir <backup_dir_given_in_backup_config>/cluster-node-backups/#.#.#.0.21061376-Dual-########-####-####-####-############-###.###.###.###-########-####-####-####-############mkdir <backup_dir_given_in_backup_config>/cluster-node-backups/#.#.#.0.21061376-Dual-########-####-####-####-############-###.###.###.###-########-####-####-####-############/backup-####-##-##T##_##_##UTCPUT tmp.txt <backup_dir_given_in_backup_config>/cluster-node-backups/#.#.#.0.21061376-Dual-########-####-####-####-############-###.###.###.###-########-####-####-####-############/backup-####-##-##T##_##_##UTC/cluster_backup-########-####-####-####-############-###.###.###.###-########-####-####-####-############-nsx-ufo-backup-restore.tarNote: <backup_dir_given_in_backup_config> is the backup directory path specified in the NSX UI.
It is also expected to get a failure result, is the directory already exist, NSX ignores this error.
The details of the file path are not that important, the above example has the IP address, UUID and date/time hashed out, but can be used as is.