Rsync question

Status
Not open for further replies.

vikozo6

Patron
Joined
Oct 16, 2015
Messages
290
hello
i need help to crate a Rsync Task if it is possible.

on Freenas i have crated a share for backups

i would like to go to a remote server and rsync all file
which ends of *.jpa

so the first question - best practise - do i have to crate a user for that or just do it with root? If a user which right do it have to have?

It is possible to backup only some files?

have a nice day
and thanks for feedbacks

Vinc

FreeNAS-11.1-U6
 

southerner

Dabbler
Joined
Feb 4, 2017
Messages
11
Your going to need to setup your Rsync with SSH for a remote server, so yes, a user with permissions for each volume or dataset read (and write on remote machine).

FreeNas GUI - Rsync will only allow you Rsync a Volume or a dataset below it

I believe through the CLI you can rsync one session (not on a schedule) OR create a cron to run a rsync script

Code:
 rsync -a 'ssh -i sshkey' -filter "- files.jpa" /mnt/yourvolume/dataset User@remotemachine:/mnt/remoteVol/remoteDataset 
 
Status
Not open for further replies.
Top