Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Help with an Rsync command

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.

oleost

Neophyte
Joined
Aug 19, 2012
Messages
6
Hi

Im trying to setup an rsync, that pulls files from a remote server I have. Also I want only an spesified file type.

Earlier on an Ubuntu server I used this command, but now it doesnt seems to work, it only fetches Directories and not the files I want.

Any suggestions?

Code:
root@NAS:~/rsync # rsync -va --include '*/' --include-from=/root/rsync/filestosync --exclude '*' -ssh XXX@XXX.XXXX.com:/home/XXX/XXX/Movies/ /mnt/KK02/Storage/Filmer/
receiving incremental file list

sent 176 bytes  received 2.51K bytes  1.79K bytes/sec
total size is 0  speedup is 0.00
root@NAS:~/rsync # nano /root/rsync/filestosync
  GNU nano 2.7.0																										   File: /root/rsync/filestosync

*.mkv
*.sub
 

Chris Moore

Wizened Sage
Joined
May 2, 2015
Messages
10,068
Status
Not open for further replies.
Top