Git Product home page Git Product logo

macfly's Introduction

MacFly, an incremental backup tool based on rsync and btrfs snapshot

You must use a full device to set a btrfs file system.

  • with a an USB device, identify the /dev device

  • with an iscsi device, login to your target, for instance:

    iscsiadm --mode discovery --type sendtargets --portal 192.168.100.7 iscsiadm --mode node --portal 192.168.100.7 --login
    --targetname iqn.2012-07.com.lenovoemc:storage.disque-reseau.MacFly

  • you can use any filesystem (ext4, NFS, ...) by creating a disk image

    qemu-img create -f raw macfly.img 200G

Then create the btrfs filesystem:

mkfs -t btrfs --force /dev/sdX

or

mkfs -t btrfs --force macfly.img

Then find the UUID:

blkid -t TYPE=btrfs -s UUID

or for the disk image:

losetup -f macfly.img blkid --probe -t TYPE=btrfs -s UUID /dev/loop0

Create /etc/macfly and copy config and filter files in it.

Update /etc/macfly/config to set the correct UUID Update /etc/macfly/filter to filter files and directory, you want to backup

Copy macfly-update to /etc/cron.hourly/

You can force the first backup by running /etc/cron.hourly/macfly-update.

Then an hourly backup will be done. Hourly backups are kept during 24 hours, Dayly backups are kept during 1 week, Weekly backups are kept until disk space is exhausted.

macfly's People

Contributors

vivier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.