Sftp does not copy empty folders

krushynn

Cadet
Joined
Jun 28, 2021
Messages
4
Hi,
I have a cloud sync task (sftp) configured in Truenas that pull data from Synology to Truenas. All except one work fine - Truenas is not able to copy empty folders. Can I somehow force it to copy/sync empty folders? On the Rclone website I found the right parameters (--create-empty-src-dirs), but how can I apply them to the sftp task?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
As you probably already noticed, the GUI gives you no option to pass additional parameters to rclone, so you're out of options for a cloud sync task, but you can certainly use rclone yourself in a cron task and specify all the fancy switches you desire.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Or create a file named e.g. .keep_me in each empty folder. Common method in revision control managed source trees.
 
Top