Rsync via ssh and Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory

Categories: BSD, Slackware

You can easily use rsync encrypted in a ssh session, with: rsync -avP -e “ssh -i /home/user/.ssh/id_rsa” remoteuser@remoteserver.com:~/directory/to/sync . Use the complete path of the ssh key, if you put ~/.ssh/id_rsa you’ll have this error by rsync: Warning: Identity file ~/.ssh/id_rsa not accessible: No such file or directory

rsyncd missing secret for user

Categories: Linux

If rsync tells you rsyncd[6430]: auth failed on module blablablabla: missing secret for user “user” Try to chmod 700 your .secret files.

Backup all MySQL databases and other important stuff on FreeBSD

Categories: BSD

This is the (bash) script that i use for backup all MySQL databases and other important stuffs like etc/ dir, configuration files in /usr/local/etc and whatever you want. As you can see, it’s launched 3 times a week by cron, on sunday, wednesday and friday at 23:55. It create a list of installed packages, dump […]