Full Backup of a Share Folder in the Greyhole Pool

  • Hello All,


    Greyhole works great, and I've had no problems with the plugin for OMV. However, for added piece of mind, there are certain folders (Photo, Documents, etc) that I would like to backup to an external hard drive. The problem I have with both rsnapshot and rsync is I point them to the shared folder to be backed up and because rysnc and rsnapshot both work with the filesystem, it only backs up the symlinks that are inside the folder on the one drive where the shared folder was created.


    I would like be able to backup the full data set then have the incremental backups that rsync and rsnapshot do. That way if, God forbid, the whole greyhole pool or my entire system crashes I can still get to the backed up data on the external drive. (plus I like sleeping in my bed which would never happen again if I lost all my wife's photos).


    Any help setting up a full backup would be greatly appreciated, if it requires command line, no problem, I'll just need a little extra hand-holding with it.


    Thanks

    • Offizieller Beitrag

    Use the rsnapshot plugin. You would have to leave the external plugged in all the time though.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • No problem leaving the external drive plugged in all the time. The only problem is it appears that rsync/rsnapshot only backs up the symlinks from the source folder and not the actual data since it is distributed between 3 disks that are part of the greyhole pool. After a day of backups the disk has only 3MB of space used when it should be over 150GB.


    I have not tried usbbackup, will it pull the entire data from the share or just backup the symlinks like rsync?

  • Hmm... test it. I would like to know the answer. There is an extra options setting. If not maybe an option can be added to follow symlinks.


    Code
    -L, --copy-links
                  When symlinks are encountered, the item that they point to  (the
                  referent) is copied, rather than the symlink.  In older versions
                  of rsync, this option also had the side-effect  of  telling  the
                  receiving   side   to  follow  symlinks,  such  as  symlinks  to
                  directories.  In a modern rsync such as this one, you’ll need to
                  specify  --keep-dirlinks  (-K)  to get this extra behavior.  The
                  only exception is when sending files to an rsync that is too old
                  to  understand  -K — in that case, the -L option will still have
                  the side-effect of -K on that older receiving rsync.
  • Sorry, I posted before I saw your code box about -L. I have read this in my searching for a solution but wasn't sure how to apply it. Where would I add this -L variable in the rsnapshot or rsync gui? And would I simply add "-L" or does it need something more?


    As for usbbackup, I will try it as soon as I get home and I'll post back what I find. Thanks for your help and patience.

    • Offizieller Beitrag

    You can put any of these arguments in the long arguments box and it will use them when executing the job.


    Code
    -l, --links                 copy symlinks as symlinks
    -L, --copy-links            transform symlink into referent file/dir
         --copy-unsafe-links     only "unsafe" symlinks are transformed
         --safe-links            ignore symlinks that point outside the tree
    -H, --hard-links            preserve hard links

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag
    Zitat von "tekkbebe"

    He means in the "Extra options" box.


    Thanks :) I was reading the name in the source code.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Ok, so for the command-line challenged like myself. I put "-L" (without quotes) in the Rsync long arguments box when adding a backup with the rsnapshot plugin and it did a complete backup of the share folder following all the symlinks. I'm sure this would be the same in the Extra options box on rsync and usbbackup. Thanks again tekkbebe and ryecoaaron for your help

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!