Best folder to save rsync –password-file

Status
Not open for further replies.

Brad1976

Dabbler
Joined
Mar 31, 2015
Messages
40
Hey all,

I'm sorry if I haven't found the other thread(s), but I've been searching so many threads that I'm literally going cross eyed... I've seen threads mentioning the :–password-file=", but not in a context that answered my specific question.....

While FreeNAS has been running fantastic, I'm still dealing with the "physiological trust issues"... I've been a Windoze user all my life, so I'm still having trust issues with the ZFS. Not to mention that *just in case* of a FreeNAS critical system failure, I really don't want to loose all my data... So, long story short, I have another box running Ubuntu 16 .04.1 LTS with some drives formatted to NTFS and I'm using this box to backup my datasets in my FreeNAS box. All other computers except for this Ubuntu box are Windoze. And my BackupServer is Ubuntu because, well, Windoze doesn't have a good rsync implementation. So, just this past weekend I was finally succeeded in backing up a small test dataset from FreeNAS to the Ubuntu BackupServer, with a daemon running on Ubuntu and a FreeNAS module running as a push. (My desire is to have FreeNAS pushing whatever datasets I want backed up and the Ubuntu just sits there and takes it...) So far everything appears to be working almost great... Almost, because I haven't been able to get the authentication running... The only "security" I have at the moment is that the Ubuntu has NOT been configured to share anything, with the exception of the rsyncd daemon running and that I am only allowing the single IP of the FreeNAS server as an authorized host within the rsyncd.config file on the Ubuntu side. (Oh, and another piece in case anyone wants to make friendly suggestion, which I'm always open to, is that both the FreeNAS and Ubuntu BackupServer are running within my local LAN, nothing is goign outside my router to the internet at all.)

During my trolling of a LOT of threads, I know that I have to create a password file and then make an entry into the extras box at the bottom of the FreeNAS rsync push window for the variable "–password-file=". However, I also remember reading that there was an issue where someone (or some people) had their password file dissapear during a FreeNAS system update, or even during a reboot... I know it could be possible to put the file into /mnt/dataset_name/whatever_folder, but I would rather NOT put it into one of the datasets I have if at all possible... Is there any particular folder that one of you FreeNAS Gods might be able to recommend for me were I can place the password file?

(PS - Eventually I would like to switch over to SSH as I remember there have been issues with "rsyncd" versus "rsync", but I don't have a lot of time to splay these days as my son is getting ready for his 13th surgery on the 16th of this month and I also need to find a place for my better half to live before her and her son are homeless as of the 15 Dec... I know, lots of drama... lol Sorry for the babble... insomnia sleep pooched and... yeah...... *yawn*)

Sorry for the babble and thanks in advance for your help and suggestions!!! :)
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
During my trolling of a LOT of threads, I know that I have to create a password file and then make an entry into the extras box at the bottom of the FreeNAS rsync push window for the variable "–password-file=". However, I also remember reading that there was an issue where someone (or some people) had their password file dissapear during a FreeNAS system update, or even during a reboot... I know it could be possible to put the file into /mnt/dataset_name/whatever_folder, but I would rather NOT put it into one of the datasets I have if at all possible... Is there any particular folder that one of you FreeNAS Gods might be able to recommend for me were I can place the password file?
The best place for it is on your pool. Just make sure you apply the appropriate permissions on the file to keep it away from prying eyes.
 

Brad1976

Dabbler
Joined
Mar 31, 2015
Messages
40
The best place for it is on your pool. Just make sure you apply the appropriate permissions on the file to keep it away from prying eyes.

Bummers... I was expecting that to be the answer, I was just hoping there was another way... Thanks m0nkey_!!! Have a great weekend! :)
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
I recommend setting up public key authentication instead of saving a password in a file.
Code:
[user@FreeNAS ~]$ ssh-keygen -t rsa
(Accept all defaults)
[user@FreeNAS ~]$ ssh-copy-id user@Ubuntu
[user@FreeNAS ~]$ ssh user@Ubuntu
user@Ubuntu:~$ 
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
And having a backup is not just sensible, but should almost be a requirement.
 
Status
Not open for further replies.
Top