I just downloaded cya and was looking at the installation instructions and how to configure it.
The cya home or working directory is /home/cya by default.
However my /home partition (actually a btrfs subvolume) contains only "real" user home directories and i'd like to keep it that way. I have a separate backup subvol (/share/backup) so I was considering moving the cya home to there
However, when I Iooked at the cya script to find where HOME_DIR is set, further down the script I noticed the following lines-
if [ ! -d "${HOME_DIR}" ]
then
RECOVER_DIR="/mnt/cya/home/cya"
i'm really not a shellscript programmer, but this looks to me as if it effectively harcodes the value of HOME_DIR as /home/cya, because if I move HOME_DIR to- (say) /some/other/mount/point, and then later mount that image under /mnt, wouldn't the lines above need to be-
if [ ! -d "${HOME_DIR}" ]
then
RECOVER_DIR="/mnt/cya/some/other/mount/point/cya"
?
Maybe i'm mis-understanding this, but it looks to me as if the key line should look more like-
RECOVER_DIR="/mnt/cya${HOME_DIR}"