Raspberry Pi Backup | rsnapshot

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 52

  • @KAPhotography
    @KAPhotography 3 ปีที่แล้ว +1

    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.

  • @cristif92
    @cristif92 หลายเดือนก่อน

    very usefull tutorial, ... however rsnapshoot is no longer suported. any similar alternatives ?

  • @krisz114
    @krisz114 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Conky. I have a few videos on it and it’s included as an option in build a pi. 😀

  • @gammaray-noworldorder8087
    @gammaray-noworldorder8087 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Google returned this support.reliablesite.net/kb/a198/automating-ftp-backups-in-linux.aspx

  • @hawkeyeCH53E
    @hawkeyeCH53E ปีที่แล้ว

    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.

  • @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.

  • @sagebrother
    @sagebrother ปีที่แล้ว

    Another very useful video. Thanks for doing these.

  • @hawkeyeCH53E
    @hawkeyeCH53E ปีที่แล้ว

    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

  • @ddgdec
    @ddgdec 4 ปีที่แล้ว +1

    with which command can I restore the backup.

  • @HerbertCrosby
    @HerbertCrosby 4 ปีที่แล้ว +1

    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!

  • @jacksonmin2058
    @jacksonmin2058 11 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      Backing up everything is certainly an option.

  • @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?

  • @Speccy48k
    @Speccy48k 4 ปีที่แล้ว +1

    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 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.

  • @alexmedina2102
    @alexmedina2102 3 ปีที่แล้ว +1

    Great vídeo bro!

  • @brierepooc8987
    @brierepooc8987 3 ปีที่แล้ว

    I wish I did this beforemy Pi 4 SD card crashed. Now I am trying to repair it fsck is coming up short.

  • @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.

  • @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!?

  • @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 ปีที่แล้ว +1

      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

    • @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.

  • @Whothewaynecares
    @Whothewaynecares 3 ปีที่แล้ว

    i told it to Backup / onto my NAS
    Guess i overwhelmed that poor guy a little :D

  • @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 ปีที่แล้ว +1

      Wouldn't that still leave you with only one copy of the data?

  • @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 ปีที่แล้ว +1

      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.

  • @mystified1234
    @mystified1234 4 ปีที่แล้ว

    Thank you & Brilliant !

  • @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😁

  • @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

  • @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 ปีที่แล้ว +3

      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)

  • @christyr-m35
    @christyr-m35 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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.

  • @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:~ $

  • @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/