RSync , Hardlinks, Date > c't rsyncBackup.vbs

  • Sorry i'm a newbie


    Kann man so etwas hier hineinbauen?


    Artikel aus c't 21/2006
    Das Windows-Skript rsyncBackup.vbs erstellt
    Schnappschüsse Ihrer Arbeitsordner auf einem lokal angeschlossenen
    NTFS-Laufwerk. Das verwendete Werkzeug rsync kopiert bei jedem Lauf
    inkrementell nur Dateien, die seit der letzten Sicherung geändert wurden
    - dank Hard-Links erscheint auf dem Ziellaufwerk aber jeder neue
    Schnappschuss als Voll-Backup. Die zu sichernden Ordner und das
    Zielverzeichnis tragen Sie mit einem Texteditor direkt in das Skript
    ein. (kav)


    I try to translate in english, :S
    the script creates a directory with the name actual date -time.
    rsync copies the first time all data in the this directory.
    the second time it creates a new directory with the name actual date -time.
    this time only new data is copied, the not new data are only hardlinks.


    this means you have snapshots off all data of every time.
    perhaps 8TB data on a 2TB harddisk. (windows cant see the difference of
    hardlink or real file)


    http://www.zyxelforum.de/c%CA%…wie-einbauen--t10497.html


    or maybe it already exist ....

    boring OMV.
    it runs and and runs and runs and runs and ru ...

    • Offizieller Beitrag

    Look at the rsnapshot plugin. It does this.

    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!

  • i tried rsnapshot, looks good so far.


    but as far as i see, it does not use hardlinks and than of course i have no
    access to older files (/history).


    or is there any switch?


    thanks god no crypto trojaner keeps the filename.
    otherwise rsnapshot will overwrite with the cryptet files the uncrypted,
    correct?

    boring OMV.
    it runs and and runs and runs and runs and ru ...

    • Offizieller Beitrag

    but as far as i see, it does not use hardlinks and than of course i have no
    access to older files (/history).

    Nope. Hard links is exactly how rsnapshot works. From the rsnapshot home page:



    Zitat

    rsnapshot is a filesystem snapshot utility based on rsync. rsnapshot makes it easy to make periodic snapshots of local machines, and remote machines over ssh. The code makes extensive use of hard links whenever possible, to greatly reduce the disk space required.



    otherwise rsnapshot will overwrite with the cryptet files the uncrypted,
    correct?

    Nope. It is the perfect protection against the crypto viruses (if you don't expose the destination shared folder to the network with write access). It will think the file is different but you will have an older copy in the hourly/daily/weekly/etc backup.

    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!

  • Nope. Hard links is exactly how rsnapshot works. From the rsnapshot home page:


    Zitat

    rsnapshot is a filesystem snapshot utility based on rsync. rsnapshot makes it easy to make periodic snapshots of local machines, and remote machines over ssh. The code makes extensive use of hard links whenever possible, to greatly reduce the disk space required.


    So great to hear,
    do you have a link how to activate this in the plugin?

    boring OMV.
    it runs and and runs and runs and runs and ru ...

    • Offizieller Beitrag

    do you have a link how to activate this in the plugin?

    There is no way to activate or deactivate it in the plugin.

    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

    It uses hard links if it can (should be most of the time). I don't know how or if you even can disable them in rsnapshot. See my output below to see the inodes are the same. How are you checking for them? It won't hard link to the original file. I makes a copy and then all subsequent archives are hard link'd to the first.


    Code
    # ls -i weekly.3/3\ -\ Aaron/Star\ Wars/1\ -\ The\ Phantom\ Menace.mkv
    126274 weekly.3/3 - Aaron/Star Wars/1 - The Phantom Menace.mkv
    # ls -i weekly.2/3\ -\ Aaron/Star\ Wars/1\ -\ The\ Phantom\ Menace.mkv
    126274 weekly.2/3 - Aaron/Star Wars/1 - The Phantom Menace.mkv

    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!

Jetzt mitmachen!

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