39 Commits

Author SHA1 Message Date
Manorit Chawdhry
bd8eb21318 update version code 2022-03-26 22:28:28 +05:30
Manorit Chawdhry
8d4b08b9b5 Implement bind mounting (#73)
This will avoid symlinking issues and race conditions which leave the
directory in inconsistent state. The change was inspired by the
implementation of @ThibaultLemaire with some minor tweaks to keep the
backup functionality intact. Directories with hardlinks aren't supported
anymore to keep the backup functionality intact

Co-authored-by: Thibault Lemaire <thibault.lemaire@zoho.eu>
2022-03-26 21:32:57 +05:30
Manorit Chawdhry
418430a5cc optimize the syncing process using rsync --link-dest (#72)
This change won't preserve the hardlinks anymore right now, but will
allow the backups to be much faster and space efficient.

Also, this change maintains two states now, one directory refers to the
directory before running asd and the other directory keeps track of the
directory after running asd

If a proper unsync happens. The new directory will be moved atomically
to the place where the original directory existed, if not, the previous
directory will be backed up in tar.zstd format and the updated directory
will be moved back to the place of original directory ( since this
directory might have suffered syncing issues, backup is formed from the
old directory)
2022-03-26 21:32:57 +05:30
Manorit
f37e672de6 version bump: 5.86 2021-11-29 12:05:00 +05:30
Manorit
58309991af don't overwrite asd.conf if already present 2021-09-17 17:39:39 +05:30
Danilo Spinella
0781b39172 Install asd.conf beside main script
asd.conf is needed by the main script in order to run, so it
would be better to install them togheter, improving installation
for users who are not using systemd nor upstart.
2021-09-14 15:55:56 +05:30
graysky
5b3471ea25 bail if $VOLATILE is not tmpfs, fixes #33 2016-11-26 11:17:16 -05:00
graysky
e3d72ce9aa more robust internals 2016-11-25 16:42:37 -05:00
graysky
20f81fad0d bump ver 2016-09-04 02:50:04 -04:00
Moez Bouhlel
932a0d3510 du - dont deference all symbolic links
allow lines starting with double-quotes variables

enable space before comments and variables

update to 5.82
2016-08-04 15:08:54 -04:00
graysky
ee89bbf22a force ln in Makefile 2016-07-19 03:06:31 -04:00
graysky
e929e8797f support of older version of egrep to fix #39 2016-07-19 02:45:38 -04:00
graysky
a2c0606d91 fix issue #39 2016-07-15 14:24:45 -04:00
graysky
8d0c621045 bump ver 2016-07-06 20:57:11 -04:00
graysky
1c15a9112e add a check for unwanted characters in asd.conf 2016-07-04 16:52:33 -04:00
graysky
e3bbb57836 bump ver 2016-06-12 06:24:47 -04:00
graysky
ac7a5d9137 update version for release 5.76 2015-10-29 14:44:17 -04:00
ada482
d64aeee083 Updated Makefile for Bash Completion
also incremented version
2015-10-21 00:45:46 -05:00
graysky
24d50c6a67 cleanup of Makefile and resync timer 2015-06-27 04:14:09 -04:00
graysky
12ac58d586 remove need to manually load overlay or overlayfs 2015-04-28 16:09:29 -04:00
graysky
9d2e95c53e sync with psd 5.72 with ubuntu 15.05 fixes 2015-04-26 09:45:02 -04:00
graysky
b42340cd96 use /tmp as VOLATILE as default 2015-02-06 15:53:00 -05:00
graysky
19d42f43db zsh-completion does not need to be +x 2015-02-03 15:01:20 -05:00
graysky
f8401cc002 sync up with psd 5.68 2015-01-30 15:17:08 -05:00
graysky
853ef58dbd fix typo in zsh-completion 2015-01-29 16:02:58 -05:00
graysky
56499b935e add zsh completion 2015-01-28 15:05:02 -05:00
graysky
bf0f9229ee sync version 2015-01-24 06:45:56 -05:00
graysky
13a8481b5e sync up asd to psd 5.60 codebase/support for v22 and v23 overlayfs 2014-12-24 07:56:45 -05:00
graysky
8852c80a64 updates to manpage 2014-12-21 07:11:19 -05:00
graysky
b9367771b4 change version to reflect relative position to psd 2014-12-20 18:09:55 -05:00
graysky
2e77d7212d finishing up sync up to psd 2014-12-20 17:27:51 -05:00
graysky
dcd3c1b5be Preserve extended attributes while syncing (for SELinux contexts) 2014-09-17 15:35:42 -04:00
graysky
787225ee1f resync service start timer automatically 2014-08-08 20:07:35 -04:00
graysky
d9353bda33 proper quoting 2014-04-03 15:32:02 -04:00
graysky
41278041cd release of 3.20.1 2014-03-29 08:40:18 -04:00
graysky
34ac9fbc9d updating to sync up with psd (wip) 2014-03-27 16:19:53 -04:00
graysky
6ba2f63f90 fixed typo in help 2013-11-04 15:31:54 -05:00
graysky
e7796eebdf fixed cosmetic typo in service file 2013-10-07 20:42:11 -04:00
graysky
fbd0a154ad minor cosmetic change to parse function and comments in script 2013-08-31 04:11:39 -04:00