![]() ![]() This will map the local folder called tmp/BackupDestination to (a mount point) on the destination SMB (CIFS) share remotely, this case it's my NAS Server, share name data and a folder underneath called /backup/LibreElecPi/ You may need to put in a username and password, relevant to your share, you then need the IP of the server (your desktop PC?) and a shared Windows SMB folder off itĬode mount -t cifs -o username=root,password=PASS //192.168.0.9/data/backup/LibreElecPi/ /tmp/BackupDestination Press CTRL-O to 'write out' (save) the file and CTRL-X to exit Nano. Mount -t cifs -o username=USERNAME,password=PASSWORD //IPADDRESSOFSMBSHARE/SHARENAME/FOLDERS/ /tmp/BackupDestinationÄd bs=4M if=/dev/mmcblk0 | gzip -c >/tmp/BackupDestination/ Paste in the below information into the nano text editor, be sure to change what's relevant to you! ( NOTE: The SMB password is in plain text, inside a file, depending on your network setup, this may not be a big deal, some may find this scary, you can always make a new share, with a new username / password like 'backup/backup on your server with limited access) I decided to store my backup script file in the /storage/ folder. SSH Terminal in to the Pi system with a tool like putty, mobaXterm, etc You'll need to enable SSH on your LibreElec install, it's in the menu somewhere (sorry, google it) (Please note I'm a mid-skill user, others may suggest cooler things which may be superior.) This means if your MicroSD storage card dies, or heck if you lose your Pi somehow, you can simply "re-burn" an SDCard using an imaging program, like Win32DiskImager. I have written a small script, adapted from my Raspbian Pi Hole linux for LibreElec which will backup the ENTIRE SDCard to a share on the network (desktop PC, NAS, file server) once per week. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |