anything-sync-daemon(1) anything-sync-daemon(1) (NAME) anything-sync-daemon - RAM (DESCRIPTION) Anything-sync-daemon ( asd) ( sync targets ) tmpfs (HDD/SSD) . bind mount rsync tmpfs . asd (crash-recovery) . asd: o . o ( SSD). o . tmpfs ( ) / (I/O) RAM . (SETUP) /etc/asd.conf . ASDCONF . : /etc/asd.conf asd asd init . o asd WHATTOSYNC . . o tmpfs VOLATILE . o overlayfs . USE_OVERLAYFS . 'overlay' 'overlayfs' . (FAQ) . o . USE_BACKUPS . o BACKUP_LIMIT . * "/tmp" VOLATILE . bleachbit '--clean system.tmp' (.foo) /tmp asd . "/dev/shm" overlayfs NAMESPACE systemd . : WHATTOSYNC=('/var/lib/monitorix' '/srv/http' '/foo/bar') or WHATTOSYNC=( '/var/lib/monitorix' '/srv/http' '/foo/bar' ) ASD (RUNNING ASD) (PREVIEW MODE) /etc/asd.conf asd . $ asd p Anything-sync-daemon on Arch Linux. Systemd service is currently active. Systemd resync service is currently active. Overlayfs v23 is currently active. Asd will manage the following per /run/asd.conf settings: owner/group id: root/0 target to manage: /srv/http/serve sync target: /srv/http/.serve-backup_asd tmpfs target: /tmp/asd-root/srv/http/serve dir size: 21M overlayfs size: 15M recovery dirs: 2 <- delete with the c option dir path/size: /srv/http/.serve-backup_asd-crashrecovery-20141105_124948 (17M) dir path/size: /srv/http/.serve-backup_asd-crashrecovery-20150124_062311 (21M) owner/group id: facade/100 target to manage: /home/facade/logs sync target: /home/facade/.logs-backup_asd tmpfs target: /tmp/asd-facadey/home/facade/logs dir size: 1.5M overlayfs size: 480K recovery dirs: none (CLEAN MODE) . . (root) asd . $ asd c Anything-sync-daemon on Arch Linux. Deleting 2 crashrecovery dirs for sync target /srv/http/serve /srv/http/.serve-backup_asd-crashrecovery-20141105_124948 /srv/http/.serve-backup_asd-crashrecovery-20150124_062311 ASD SYSTEMD systemd asd . tmpfs . . asd.service . # systemctl [option] asd : start stop enable disable ASD INIT systemd init . Upstart . init ( /etc/cron.hourly) resync tmpfs . cron . (SUPPORTED DISTROS) asd : o Arch Linux (FAQ) : overlayfs : Overlayfs .. . . asd overlayfs tmpfs asd (sync unsync) . overlay . . asd overlayfs . overlayfs USE_OVERLAYFS= /etc/asd.conf . overlayfs . 'overlayfs' ( ) 'overlay' ( 'fs' ). asd overlayfs . << >> overlayfs . "overlayfs size" "dir size" . overlayfs . : ".foo-backup_asd" ".foo-backup_asd-old" : asd (hard link) .foo- backup_asd-old . .foo-backup_asd bind mount overlay . : (crash) asd . : << >> . asd ( ) asd . asd << >> . asd . rsync . asd . : : . /foo/bar /foo/.bar- backup_asd-crashrecovery-20141221_070112.tar.zstd ( ). : : : 1. asd . 2. asd . asd . 3. ( ). 4. (untar) . /foo/bar: 1. cd /foo 1. mv bar bar-bad 2. tar -xvf .bar-backup_asd- crashrecovery-20141221_070112.tar.zstd /foo/bar . : asd : asd "clean" . (CONTRIBUTE) (pull request) . . (BUGS) issue . o asd . (ONLINE) o : https://github.com/graysky2/anything- sync-daemon o : https://wiki.archlinux.org/index.php/Anything-sync-daemon (AUTHOR) graysky (graysky AT archlinux DOT us) (MAINTAINER) Manorit Chawdhry (manorit2001@gmail.com) 26 November 2016 anything-sync-daemon(1)