Computer Hope

Compile Partclone

  • sudo eopkg it -c system.devel
  • sudo eopkg it e2fsprogs-devel ntfs-3g ntfs-3g-devel btrfs-progs btrfs-progs-devel ncurses-devel
  • mkdir build && cd build
  • wget
  • unzip && cd partclone*
  • ./configure --enable-ncursesw --enable-btrfs --enable-exfat --enable-fat --enable-ntfs --enable-extfs --enable-hfsp --enable-minix --prefix=/usr/
  • make -j4
  • sudo make install

using Partclone.dd (Full Backup & Restore using dd mode )

  • lsblk
  • sudo partclone.dd -s /dev/device -o /home/backups/device.img (Backup drive to file)
  • sudo partclone.dd -s /home/backups/device.img -o /dev/device (Restore file to drive)

explain Partclone

  • show ncurses progress = -N
  • source file or device = -s
  • output file or device = -o
  • set buffer size = -z 4096 (useful for raspberry pi)

using Partclone (Partition Backup & Restore)


Computer Hope

  • sudo eopkg it -c system.devel
  • mkdir build && cd build
  • wget && tar zxvf safecopy-1.7.tar.gz
  • cd safecopy && ./configure --prefix=/usr
  • make -j44 && sudo make install
  • safecopy help

  • apt-get install golang (Ubuntu)
  • sudo eopkg it golang (Solus)
  • export GOPATH=/$HOME/go/
  • go get
  • sudo install $HOME/go/bin/rclone /usr/bin
  • rclone config
  • rclone copy /home/user/ b2:user-backup
  • rclone copy --exclude=/home/node/exclude/* /home/node/ b2:user-backup/node (to exclude folder)

wrote this earlier today, its fairly simple s3 backup script written in bash

Receive $10 in credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence