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.
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.
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.
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.
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
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?
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?
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?
Not that I am aware of but someone else might know how. I use this method for full image backups th-cam.com/video/hiCpBm0KAvA/w-d-xo.html I run this manually once a week and then rely on rsnapshot to take care of data in between full image backups.
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
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!?
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?
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. th-cam.com/video/hiCpBm0KAvA/w-d-xo.html
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.
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
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.
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
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
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)
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?
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.
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?
"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.
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
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 ...
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/
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.
very usefull tutorial, ... however rsnapshoot is no longer suported. any similar alternatives ?
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.
Conky. I have a few videos on it and it’s included as an option in build a pi. 😀
I want to backup usb disk to ftp. However, I don't have enough linux knowledge. Is there a guide for this?
Google returned this support.reliablesite.net/kb/a198/automating-ftp-backups-in-linux.aspx
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.
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.
Another very useful video. Thanks for doing these.
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
with which command can I restore the backup.
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.
Thanks for the heads up!
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?
Backing up everything is certainly an option.
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?
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?
Not that I am aware of but someone else might know how. I use this method for full image backups th-cam.com/video/hiCpBm0KAvA/w-d-xo.html I run this manually once a week and then rely on rsnapshot to take care of data in between full image backups.
Great vídeo bro!
I wish I did this beforemy Pi 4 SD card crashed. Now I am trying to repair it fsck is coming up short.
interesting names for #, when used in scripts it is called she as in she-bang (#!). This came from the # sign in music for sharp.
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
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!?
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?
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. th-cam.com/video/hiCpBm0KAvA/w-d-xo.html
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.
i told it to Backup / onto my NAS
Guess i overwhelmed that poor guy a little :D
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
Wouldn't that still leave you with only one copy of the data?
@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?
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.
Thank you & Brilliant !
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
Format the drive in ext4 format using an app like gparted. This should resolve the issue.
KM4ACK thank you! Solved the issue😁
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
Format the drive in ext4 using a tool like gparted. That should resolve the issue.
@@KM4ACK Jason thanks, now saving multiple alphas
can you please add a soft POWER DOWN switch to any of the GPIO pins on the Raspberry Pi.
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)
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?
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.
ls /media/pi
ls: cannot access '/media/pi': No such file or directory. Tips pls
media usb-stick sd kaart 1gig ,for a test.
Is your user name still pi? If not, replace pi with your user name.
lsblk
@@KM4ACK
yes sir, pi name = pi@raspberrypi:~ $
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?
"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.
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
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 ...
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/