File sync - Sync the files between multiple computers (like dotfiles, IDE files, etc.)
- Sync files by using Git repository
- commands:
- commit - commit the actual files into the git repository
- sync - pull the changes and if any than sync
- init - create the /etc folder structure (sudo)
- remove - remove the /etc folder structure (sudo)
- Check the file changes by hashes, if it different (than change happened)
- Create a repository which does not changed by manually
- Config in the /etc folder
- Read the config file from /etc
- Pull the repository into /tmp/{timestamp}
- Check the integrity of files based on hash/checksum (md5)
- If any file differes then copy that into the repository
- Commit and push the changes with the timestamp
- Read the config file from /etc
- Check the last commit, if it's newer than the one in the /etc than sync
- Pull the repository into /tmp
- Check the integrity of files based on hash/checksum (md5)
- If any file differes then copy that into the location by overwriting the original