https://github.com/pumpkinseed/fsync
Dot file syncer
https://github.com/pumpkinseed/fsync
Last synced: 6 months ago
JSON representation
Dot file syncer
- Host: GitHub
- URL: https://github.com/pumpkinseed/fsync
- Owner: PumpkinSeed
- Created: 2022-09-09T12:55:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T21:05:54.000Z (over 2 years ago)
- Last Synced: 2025-04-14T13:16:17.525Z (6 months ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fsync
File sync - Sync the files between multiple computers (like dotfiles, IDE files, etc.)
### Concept
- 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### Commit
1. Read the config file from /etc
2. Pull the repository into /tmp/{timestamp}
3. Check the integrity of files based on hash/checksum (md5)
4. If any file differes then copy that into the repository
5. Commit and push the changes with the timestamp### Sync
1. Read the config file from /etc
2. Check the last commit, if it's newer than the one in the /etc than sync
3. Pull the repository into /tmp
4. Check the integrity of files based on hash/checksum (md5)
5. If any file differes then copy that into the location by overwriting the original