So I have a folder on a SFTP server called Completed Projects.
Inside this folder are separate folders for different projects that have been completed recently.
On a local server I then have another Completed Projects folder. This contains all completed projects from all time.
I want to download/backup the contents of the completed projects on the SFTP and write them into the Completed Projects folder on the local server and then delete them from the SFTP.
What I find though is that it downloads/backups the Completed Projects folder on the SFTP into the Completed Projects folder on the local server so that, on the local server, I have a path of /Completed Projects/Completed Projects.
I'm sure I'm being stupid but I can't figure out how to not include the source folder in the backup and only include the contents of the source folder.
Inside this folder are separate folders for different projects that have been completed recently.
On a local server I then have another Completed Projects folder. This contains all completed projects from all time.
I want to download/backup the contents of the completed projects on the SFTP and write them into the Completed Projects folder on the local server and then delete them from the SFTP.
What I find though is that it downloads/backups the Completed Projects folder on the SFTP into the Completed Projects folder on the local server so that, on the local server, I have a path of /Completed Projects/Completed Projects.
I'm sure I'm being stupid but I can't figure out how to not include the source folder in the backup and only include the contents of the source folder.
Statistics: Posted by Peakoverload — 23 May 2022, 14:03 — Replies 1 — Views 12