Raspberry Pi Backup | rsnapshot

  Рет қаралды 15,595

KM4ACK

KM4ACK

4 жыл бұрын

rsnapshot allows for automated daily backups of your raspberry pi. This makes it super simple to backup your raspberry pi home directory along with other.
🔹Commands used in the video
sudo apt-get install rsnapshot
sudo nano /etc/rsnapshot.conf
rsnapshot configtest
Thumb Drive - amzn.to/2RQlwZF
🔹Raspberry Pi Build Guide - tiny.cc/pi4guide
🔹Frequently Asked Questions - tiny.cc/km4ack-faq
🔹Weekly Newsletter - mailchi.mp/40da1fe472e3/km4ac...
🔹Follow Me
Instagram @km4ack
Twitter @km4ack
🔹FREE Get Started Guide - tiny.cc/getstartedguide
🔹Cool Ham Gear - km4ack.com
🔹Support the channel through Patreon - / km4ack
🔹Did you just get a raspberry pi and want to hook it up to your radio? Start here • Where to start? Raspbe...
Want your raspberry pi to play nice with your ham radio? Are you into digital modes like FT8, JS8Call, FLDIGI, Winlink, APRS, Digipeaters and others? Each week I put out new content showing you exactly what steps to take to get the latest ham radio software on your raspberry pi. Whether you just want to ragchew or are seriously into emergency preparedness, emcomm, or ARES and want to learn all you can about using the raspberry pi to drive your ham radio, this channel has something for you. Be sure to click the subscribe button and ring the bell before heading off. That way you will get notified of all future videos.
🔹My Shack🔹
Yaesu 857D - amzn.to/2MOAZtx
Yaesu FT65R - amzn.to/2XsOQq5
Raspberry Pi - amzn.to/2WjLzIk
Signalink Soundcard - amzn.to/2EZjxMx
🔹🔹🔹🔹🔹
As an Amazon Associate I earn from qualifying purchases

Пікірлер: 51
@sagebrother
@sagebrother Жыл бұрын
Another very useful video. Thanks for doing these.
@va7dgp
@va7dgp 4 жыл бұрын
I found it very helpful. I have one of those USB passports hard drives. I've been storing the SSTV pictures. I've received from our local SSTV event we have here in the Vancouver BC area. My main PI I wanted to use as a back device and this is what I have been looking for.
@mystified1234
@mystified1234 4 жыл бұрын
Thank you & Brilliant !
@alexmedina2102
@alexmedina2102 3 жыл бұрын
Great vídeo bro!
@KAPhotography
@KAPhotography 2 жыл бұрын
This is a really great tutorial for rsnapshot. i just want to ask if you could make a turorial about NAS storage which automatic delete the videos morethan 30 days. the video came from my IP camera.
@hawkeyeCH53E
@hawkeyeCH53E 10 ай бұрын
System boots fine after removing the thumbdrive. I am noting that my Gridsquare and CGPS is intermittent. Almost beginning to wonder if my uBlox 7 is defective.
@JnJTrueOutdoorAdventures
@JnJTrueOutdoorAdventures 4 жыл бұрын
That is great Jason!! This is something that I need to do for sure. I have a 64 gig thumb drive that I think I will use for the backup drive. I have a question, I just bought and should be here Friday, a AnyTone 868 DMR HT. A friend highly recommended it and he was telling me that I need to get a MMDVM Hotspot Pi-star Support P-25 DMR YSF & Antenna Fit For Raspberry Pi and with that and the AnyTone 868 I would able to work DMR/D-Star/Fusion. I am not familiar with DMR systems and the Hotspot. Have you done any videos about this?? Great video and I will be doing the backup thing when I get home. Juddie WD8WV
@KM4ACK
@KM4ACK 4 жыл бұрын
Negative. I have not ventured into DMR yet. It's cool but just not something I am super excited about. At least not at the moment. Maybe a future project thought. Who knows!?
@ddgdec
@ddgdec 4 жыл бұрын
with which command can I restore the backup.
@wcheilman
@wcheilman 4 жыл бұрын
interesting names for #, when used in scripts it is called she as in she-bang (#!). This came from the # sign in music for sharp.
@HerbertCrosby
@HerbertCrosby 4 жыл бұрын
once you have the how long to do a backup move time to before 4am as that is the time for log rotates and updates on most systems.
@KM4ACK
@KM4ACK 4 жыл бұрын
Thanks for the heads up!
@hawkeyeCH53E
@hawkeyeCH53E 10 ай бұрын
Jason, I followed this video to a "T". Upon re-booting my pi 4 64bit I noted that it is attempting to boot from my USB thumbdrive that I saved the backup to. I do have some other files on it. Is it common for this to happen with just the backup file loaded? Thanks
@krisz114
@krisz114 4 жыл бұрын
Hi. I have a question. What's that panel on the right side of the screen with the system and network information? I think it's really cool and I'd like to have the same thing.
@KM4ACK
@KM4ACK 4 жыл бұрын
Conky. I have a few videos on it and it’s included as an option in build a pi. 😀
@PatrickDickey52761
@PatrickDickey52761 4 жыл бұрын
@4:33 if you were going to backup the entire drive, could you do something like "backup / localhost/ exclude=/media/pi " in the config file?
@KM4ACK
@KM4ACK 4 жыл бұрын
Not certain about the exclude statement but backing up the entire drive should be possible. Since I do weekly images of my SD card anyway, this just catches the day to day things while I am working on code for various projects. I am known to run it manually as well when I reach a milestone with a project.
@Speccy48k
@Speccy48k 4 жыл бұрын
A Linux install usually has several partitions for e.g. efi boot (FAT32), swap or even home (EXT4, XFS, BTRFS). Can rsnapshot (or rsync) take a full image of a partition or a disk in case of baremetal recovery?
@KM4ACK
@KM4ACK 4 жыл бұрын
Not that I am aware of but someone else might know how. I use this method for full image backups kzfaq.info/get/bejne/ns9zo6WelbGlpnU.html I run this manually once a week and then rely on rsnapshot to take care of data in between full image backups.
@thecarys563
@thecarys563 4 жыл бұрын
Thanks for this. My issue was that something went wrong with the sound or wsjt-x. No output to the sound card from the Pi; no settings had changed. Plugging the same sound card and cables into my Mac WSJTx worked fine, full power, full sound. I tried to troubleshoot, but would up just reinstalling fresh image and re-do build-a-pi. Would this backup have helped me? Also, how do you restore?
@KM4ACK
@KM4ACK 4 жыл бұрын
No. This backup probably wouldn;t have helped. This only backs up the home folder. You should be doing a full image backup. I recommend weekly but even monthly is better than nothing. kzfaq.info/get/bejne/ns9zo6WelbGlpnU.html
@thecarys563
@thecarys563 4 жыл бұрын
Thanks KM4ACK I installed rpi-clone by billw2 and its cloning me a copy of of the initial bap now. I want to have bootable backup for field work. I'll get another card or two when there is a sale to keep in the shack.
@cbjessee
@cbjessee 2 жыл бұрын
Hmmm...I got a message :WARNING: Some files and/or directories in /home/ only transferred partially during rsync operation" after a long initial rsnapshot run. Any idea on what that's about?
@brierepooc8987
@brierepooc8987 2 жыл бұрын
I wish I did this beforemy Pi 4 SD card crashed. Now I am trying to repair it fsck is coming up short.
@gammaray-noworldorder8087
@gammaray-noworldorder8087 2 жыл бұрын
I want to backup usb disk to ftp. However, I don't have enough linux knowledge. Is there a guide for this?
@KM4ACK
@KM4ACK 2 жыл бұрын
Google returned this support.reliablesite.net/kb/a198/automating-ftp-backups-in-linux.aspx
@jacksonmin2058
@jacksonmin2058 6 ай бұрын
Old video, but helpful. Why can’t we just set it to back up everything? Is there any specific downside? Then wouldn’t we be able to skip the full image backup that we do manually?
@KM4ACK
@KM4ACK 6 ай бұрын
Backing up everything is certainly an option.
@johngainsborough7920
@johngainsborough7920 4 жыл бұрын
I used "sudo rsnapshot alpha" via the command line as per Jason (and also "/usr/bin/sudo rsnapshot alpha" in the cronjob). I still get the hard link error as reported by Bill Dombush
@KM4ACK
@KM4ACK 4 жыл бұрын
Format the drive in ext4 using a tool like gparted. That should resolve the issue.
@johngainsborough7920
@johngainsborough7920 4 жыл бұрын
@@KM4ACK Jason thanks, now saving multiple alphas
@Whothewaynecares
@Whothewaynecares 3 жыл бұрын
i told it to Backup / onto my NAS Guess i overwhelmed that poor guy a little :D
@christyr-m35
@christyr-m35 4 жыл бұрын
I have a NAS set up on my home network. I'd be interested in understanding if/how I can schedule this backup to happen such that it backs up to the NAS (which has multiple layers of backup redundancy). I'm pretty new to this, so I'm figuring it out as I go along. Any thoughts on that?
@KM4ACK
@KM4ACK 4 жыл бұрын
That is probably possible. Initial thought is that you will need to install SAMBA and then plug in the network address in place of the thumb drive name. Not something I have done, just an educated guess.
@untoldstories372
@untoldstories372 3 жыл бұрын
would it not make sense to just use a USB 3.0 disk drive with your operating system / rom files, that way you wouldn't have to mess about backing it up
@KM4ACK
@KM4ACK 3 жыл бұрын
Wouldn't that still leave you with only one copy of the data?
@ddgdec
@ddgdec 4 жыл бұрын
ls /media/pi ls: cannot access '/media/pi': No such file or directory. Tips pls media usb-stick sd kaart 1gig ,for a test.
@KM4ACK
@KM4ACK 4 жыл бұрын
Is your user name still pi? If not, replace pi with your user name.
@_den_
@_den_ 4 жыл бұрын
lsblk
@ddgdec
@ddgdec 4 жыл бұрын
@@KM4ACK yes sir, pi name = pi@raspberrypi:~ $
@tidemann1st
@tidemann1st 4 жыл бұрын
Hello Jason. I encountered an error.. I can run rsnapshot once. No issue! - created the folders and copied all my files. Try running it again, and I get this; rsnapshot encountered an error! The program was invoked with these options: /usr/bin/rsnapshot alpha ---------------------------------------------------------------------------- ERROR: /bin/cp -al /media/pi/BACKUP/alpha.0 /media/pi/BACKUP/alpha.1 failed (result 256, exit status 1). /bin/cp: cannot create hard link '/media/pi/BACKUP/cp_al2/tt1' to '/media/pi/BACKUP/cp_al1/tt1': Operation not permitted ERROR: Perhaps your cp does not support -al options? ERROR: Error! cp_al("/media/pi/BACKUP/alpha.0/", "/media/pi/BACKUP/alpha.1/") Any idea what my issue is? Thanks!! 73 de VA6AKA
@KM4ACK
@KM4ACK 4 жыл бұрын
Format the drive in ext4 format using an app like gparted. This should resolve the issue.
@tidemann1st
@tidemann1st 4 жыл бұрын
KM4ACK thank you! Solved the issue😁
@CharudattUplap
@CharudattUplap 4 жыл бұрын
can you please add a soft POWER DOWN switch to any of the GPIO pins on the Raspberry Pi.
@kevinshumaker3753
@kevinshumaker3753 4 жыл бұрын
There are MANY examples of how to do it on the internet. Search RPi GPIO Power down Almost all have an example Python script that monitors a GPIO pin and does the shutdown Another option is the PiMoroni on/off shim (under $10 US)
@billdornbush2475
@billdornbush2475 4 жыл бұрын
I just tried to do this, but ran into a problem. I set it up, and ran it the first time to a USB stick. Fine. I ran it again to test, fine. I added a file and ran it again. I got pages of errors. Here is the end of the listing: /bin/cp: cannot create hard link '/media/pi/PIBACK/alpha.1/localhost/home/pi/.xsession-errors.old' to '/media/pi/PIBACK/alpha.0/localhost/home/pi/.xsession-errors.old': Operation not permitted /bin/cp: cannot create hard link '/media/pi/PIBACK/alpha.1/localhost/home/pi/ESPHamClock.zip' to '/media/pi/PIBACK/alpha.0/localhost/home/pi/ESPHamClock.zip': Operation not permitted ---------------------------------------------------------------------------- rsnapshot encountered an error! The program was invoked with these options: /usr/bin/rsnapshot alpha ---------------------------------------------------------------------------- ERROR: /bin/cp -al /media/pi/PIBACK/alpha.0 /media/pi/PIBACK/alpha.1 failed (result 256, exit status 1). /bin/cp: cannot create hard link '/media/pi/PIBACK/cp_al2/cp_al1/tt1' to '/media/pi/PIBACK/cp_al1/tt1': Operation not permitted ERROR: Perhaps your cp does not support -al options? ERROR: Error! cp_al("/media/pi/PIBACK/alpha.0/", "/media/pi/PIBACK/alpha.1/") Can you give me an idea of what went wrong and what to do about it?
@thoughtyness
@thoughtyness 4 жыл бұрын
"rsnapshot encountered an error! The program was invoked with these options: /usr/bin/rsnapshot alpha " You need to do "/usr/bin/sudo rsnapshot alpha". See 8:35.
@johngainsborough7920
@johngainsborough7920 4 жыл бұрын
I used "sudo rsnapshot alpha" via the command line as per Jason (and also "/usr/bin/sudo rsnapshot alpha" in the cronjob). I still get this hard link error
@_den_
@_den_ 4 жыл бұрын
Some kind of absurdity ... What prevents you from simply running the copy folder command from the script, also automatically once a day? In addition, the execution rights and information about the owner of the file will be lost if the file system on the external drive does not support this ...
@KM4ACK
@KM4ACK 4 жыл бұрын
While there is almost always several ways to accomplish the same thing in Linux, this paper describes in detail the differences in the two methods. One is much more efficient that the other. www.mikerubel.org/computers/rsync_snapshots/
Raspberry Pi Build for Ham Radio Part 1 Step by Step
21:30
How to Auto Start APRS Tracker on the Raspberry Pi Zero
15:48
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,8 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 6 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 51 МЛН
Yaesu 891 Setup with Raspberry Pi
19:23
KM4ACK
Рет қаралды 16 М.
Backups: You're doing 'em wrong!
8:53
Jeff Geerling
Рет қаралды 285 М.
Sicheres Backup mit rsync, SSH und LUKS [Kielux 2017]
59:30
Raspberry Pi VPN Server - PiVPN using Wireguard
16:23
Everyday Tech
Рет қаралды 30 М.
Ultimate Raspberry Pi for your Ham Radio
18:21
KM4ACK
Рет қаралды 53 М.
Simple Backup Solution | Rocky Linux 9 Tutorial
22:21
KeepItTechie
Рет қаралды 969
Why I Quit the Raspberry Pi
9:12
KM4ACK
Рет қаралды 17 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН