Raspberry pi samba restart11/7/2023 ![]() Jason Fitzpatrick is the Editor-in-Chief of How-To Geek. How To Remotely Backup Your Data for Free with CrashPlan- CrashPlan is a free backup application available for Windows, Mac, and Linux machines that makes it easy to schedule regular backups to a NAS.What Files Should You Backup On Your Windows PC?-If you're not sure what files you should be backing up to your NAS, this is a good place to start.How to Backup Your Gmail Account Using Your Ubuntu PC-although the instructions are for Ubuntu you can easily modify them for Rasbian to turn your Pi NAS into an automatic email backup machine.That's it! All you need to do at this point is check in on your Raspberry Pi in the next day or two to make sure that the scheduled job is firing off as expected and the data from /USBHDD1/shares/įrom here on out anything you put into your Raspberry Pi-powered NAS will be mirrored daily across both hard drives.īefore we leave the topic completely, here are some additional How-To Geek articles you may wish to check out to add more punch to your new Raspberry Pi-powered NAS: Rsync -av - delete /media/USBHDD1/shares /media/USBHDD2/shares/ We can now hop onto any Samba-capable machine on our network and test connectivity to the network share. Once you have created the user account and password you do not need to restart the Samba daemon again as we've already instructed it to be on the lookout for authenticated users. Enter the following command: sudo smbpasswd -a backupsĮnter the password for the backup account when prompted. After confirming the password, it's time to add "backups" as a legitimate Samba user. You'll be prompted to type in the password twice to confirm. To do so type the following commands: sudo useradd backups -m -G users ![]() You can make your username and password whatever you wish. ![]() We're going to make an account with the username backups and the password backups4ever. When back at the command prompt enter the following command to restart the Samba daemons: sudo /etc/init.d/samba restartĪt this point we need to add in a user that can access the Pi's samba shares. Press CTRL+X to exit, press Y when asked if you want to keep changes and overwrite the existing configuration file. They're super small, don't require an external power source, and were on sale when we were shopping for parts. For the purposes of this tutorial we're using a matching pair of Seagate Backup Plus 1TB Portable External Hard Drives. We highly recommend using at least two hard drives in order to allow for local (at the Raspberry Pi) data redundancy. ![]() That's it! If you just want a simple network attached drive, you'll only need one hard drive. Two (at minimum) USB external hard drives for local data redundancy.One (at minimum) USB external hard drive for simple network backups and file serving.In addition to the gear you'll need from the Getting Started with Raspberry Pi tutorial, you'll only the following hardware: This tutorial builds on our previous tutorial: The HTG Guide to Getting Started with Raspberry Pi and we'll assume you've already completed that-in other words you already have your Raspberry Pi, got it powered up, hooked to a mouse and keyboard, and you've installed Raspbian on it. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |