I’m having a few problems with my nas and file permissions on a samba mount, I’m keeping a copy of the sbopkg repository for Slackware 14.1 on the nas and I have that as a samba shared folder mounted on my pc. Everything is working fine, except that the repository update fails because of rsync not being able to work owner/permissions out trough samba.
The problem could easily be solved if I had the opportunity to install sbopkg on my nas, but since that is not an option, I had to figure out how to update my repository in a different way.
What I did was simple, I’ve launched
sbopkg -r in one screen tab, and
ps axu | grep rsync in another tab, then I copied the rsync command and run it inside the shell on my nas, which has rsync installed. Easy as that is, now I can sync my local repository anytime I want.
To go one step further, I’ve added that same command as a cron job on the nas, and now my local repository is synced once a day at 5am without having to worry about it anymore. Isn’t that cool?!
Just as a reminder to myself, the full rsync command is:
rsync --archive --delete --no-owner --exclude=*.sbopkg --verbose --timeout=30 slackbuilds.org::slackbuilds/14.1/ /mnt/HD/HD_a2/sbopkg/repo/SBo/14.1/