Automatically rsync to an ftp share (e.g. digital photo frame) using curlftpfs and systemd

cryobry 3fc6b75ff0 Add command line options пре 4 година
README.md 3fc6b75ff0 Add command line options пре 4 година
install.sh 3fc6b75ff0 Add command line options пре 4 година
original.service a99eefd7e5 Finish generalizing пре 4 година
original.sh a99eefd7e5 Finish generalizing пре 4 година
original.timer a99eefd7e5 Finish generalizing пре 4 година

README.md

Usage:

  1. Configure user options in install.sh
  2. Run ./install.sh as your normal user
  3. Confirm that user services are running and enabled: systemctl --user status $name.service; systemctl --user status $name.timer
  4. If errors occur, check journal output: journalctl -r -u $name.service

Notes:

  1. curlftpfs doesn't support file permissions, thus we must only use -r in rsync
  2. curlftpfs doesn't support temporary files, thus the intermediate temp file step
  3. I mount the share to /media (by design so that my file manager will display it if it is erroneously mounted) but it may be easier for users to mount the ftp share somewhere in $HOME to avoid permissions issues