Giter VIP home page Giter VIP logo

automove's Introduction

AutoMove

Python script running in background for macOS, to automatically move Notability backups from either a OneDrive directory or a NAS to an iCloud directory, in realtime.

Functionalities :

  • Automatically sends notifications to Notification Center in macOS when anything happens (copy of a file, multiple files, copy failure, app starting)
  • Real-time updates
  • Automatically structures the backup folder on either NAS or OneDrive by smartly inferring the structure based on the file names
  • One and only one instance can run simultaneously on the same machine

Setting things up

1 - Install the dependencies using the following command:

pip install -r requirement.txt

2 - Fill in config.ini

You just have to fill config.ini with the corresponding paths :

  • The path to your mounted iCloud folder
  • Optionally: The path to your mounted OneDrive folder
  • Optionally, if not above: The credentials for SFTP connection to your NAS drive.

The config.ini file should have this form:

[PATHS]
icloud_path = <Path to mounted iCloud folder>
onedrive_path = <Path to mounted OneDrive fodler, if using OneDrive>
sftp_path = <Path for Notability temporary auto-backup on NAS>
sftp_backup_path = <Path for structured backup on NAS>

[SFTP]
sftp_host = <NAS URL or IP address>
sftp_port = <SFTP Port>
sftp_account = <SFTP Account>
sftp_pw = <SFTP Password>

Run it in the background or in an Automator app

To have it run on the background, use the following command from terminal :

python3 main.py [-h] [--sftp] [-v] &

You can easily set up an Automator app starting AutoMove automatically when logging in by creating a Shell script-executing app, and insert in it the following command :

nohup /usr/local/bin/python3 <path to Python script>/main.py > /dev/null 2>&1 &

Just open the Automator app and set it on your device to start at the beginning of a session, et voilà :)

automove's People

Contributors

clementsicard avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

crissnb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.