Sync, move and copy between Truenas paths and external FTP

djb

Explorer
Joined
Nov 15, 2019
Messages
76
Hello, i have a task to execute with file handling and before i go to code development i check out whether it can be done indirectly via using the available utilities of truenas, like rsync, cloudsync, webdav etc.

Locally we have a Truenas FTP over VPN, many devices put .CSV log files in their home directory (chroot) every 5 minutes.
What i'm asking if possible are the following:

1. since those .CSV log files are thousands over a period of time, a simple monthly sorting in folder could be great.
2. once off Copy task to local truenas paths is required, some locations are SMB on same machine, some are FTP paths for other systems to have access to data.
3. once off Copy task to cloud FTP for external server to process the data.

It might be more convenient to perform those tasks in a different order. Any comments appreciated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
1. since those .CSV log files are thousands over a period of time, a simple monthly sorting in folder could be great.

2. once off Copy task to local truenas paths is required, some locations are SMB on same machine, some are FTP paths for other systems to have access to data.
I'm not sure I understand what you mean... copying is possible to FTP and SMB destinations.

3. once off Copy task to cloud FTP for external server to process the data.
If it's once off, why wouldn't you just do the FTP transfer yourself?

If it's repetetive or you want to keep it in sync, a cloud sync task with ftp credentials could be an option.
 
  • Like
Reactions: djb

djb

Explorer
Joined
Nov 15, 2019
Messages
76


I'm not sure I understand what you mean... copying is possible to FTP and SMB destinations.


If it's once off, why wouldn't you just do the FTP transfer yourself?

If it's repetetive or you want to keep it in sync, a cloud sync task with ftp credentials could be an option.
1. Thank you , will study this.
2. Under System-> Cloud credentials, i didn't manage to find a type for SMB, only FTP. If there is another SMB accessible over VPN, \\192.168.50.50\Data , how can this be accessible for cloud sync ? Please elaborate.
3. Yes it's repetitive, since once off copy needed , sync will always copy again source file to destination.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
If there is another SMB accessible over VPN, \\192.168.50.50\Data , how can this be accessible for cloud sync ? Please elaborate.
You would use rsync for that.
 
  • Like
Reactions: djb

djb

Explorer
Joined
Nov 15, 2019
Messages
76
You would use rsync for that.
with what credentials ? Under System-> Cloud credentials, there is no option for general SMB credentials.
There are amazon S3, backblaze, box, dropbox, google etc... AND FTP that i already use.
Also on Rsync task configuration, the destination has to be SSH or rsync module type.

So i don't see any easy/obvious way rsyncing to a network SMB. can you please guide if there is a way?
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You said you need SMB on the same machine... so you don't need to use SMB, just use rsync to copy the files locally on the machine (no need for a cloud sync task. you coule use an rsync task or just a cron job to run rsync).
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Mount the SMB target if you need to using the information here:

Then run rsync towards it.
 
  • Like
Reactions: djb
Top