dapice Posted January 11, 2018 Share Posted January 11, 2018 Hi i just got rsync to work between my two unraid servers. is there a way to schedule the rsync code so i dont have to manually put it in every time i want to backup. similar to the mover every night it will backup my main server to my backup serve? thanks Link to comment
Endy Posted January 11, 2018 Share Posted January 11, 2018 I would try the User Scripts plugin. Link to comment
dapice Posted January 12, 2018 Author Share Posted January 12, 2018 i have tried that plugin with no success. i beleive its because in the terminal after puting in the code it asks for the password of the root profile on that server. is there a way to get around the password? Link to comment
Endy Posted January 12, 2018 Share Posted January 12, 2018 5 hours ago, dapice said: i have tried that plugin with no success. i beleive its because in the terminal after puting in the code it asks for the password of the root profile on that server. is there a way to get around the password? I'm not following this. Maybe explain step by step or else maybe someone else understands. (I am by no means an expert.) Link to comment
Squid Posted January 12, 2018 Share Posted January 12, 2018 i have tried that plugin with no success. i beleive its because in the terminal after puting in the code it asks for the password of the root profile on that server. is there a way to get around the password?Can't you include the login credentials in the rsync command options?And as you already found any interactive script will not working properly with the plugin Link to comment
JorgeB Posted January 12, 2018 Share Posted January 12, 2018 53 minutes ago, Squid said: Can't you include the login credentials in the rsync command options? I believe you can't, you can generate an ssh key for passwordless rsync, I was going to look into that but since my backup servers are only on for a few hours once a week during the backups I just been using root without password. Link to comment
Endy Posted January 13, 2018 Share Posted January 13, 2018 I think I understand now. Would it be possible to use Unassigned Devices to add a remote share with the proper credentials and then have the script point to that? Link to comment
etsi Posted January 13, 2018 Share Posted January 13, 2018 I have tried that! But for some reason rsync didn't work well, it tried every time to sync the same existing files to target and I don't know what's the solution. Link to comment
Limy Posted January 13, 2018 Share Posted January 13, 2018 I use this command on Mac OSX to send files to a remote server. I have not tested it on unRAID, but if you setup ssh on your unRAID server and modify this command as necessary, I'm sure it will work. rsync -avzP --exclude=".DS_Store" --delete --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r -e "/usr/bin/ssh -p optionalport" /Users/username/some/folder/ [email protected]:/var/www/html Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.