https://github.com/aarzilli/util
Collection of utilities
https://github.com/aarzilli/util
Last synced: 12 months ago
JSON representation
Collection of utilities
- Host: GitHub
- URL: https://github.com/aarzilli/util
- Owner: aarzilli
- Created: 2012-10-07T09:43:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T10:06:06.000Z (over 3 years ago)
- Last Synced: 2025-03-18T15:57:43.160Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
=====
INDEX
=====
- beck: small backup program using rsync
- Watch: executes a command every time a file is changed in the current directory
- autotrash: automatically deletes files older than a set amount of time from the trash directory
- ppwd: prints current working directory nicely
====
BECK
====
- Compile beck.go (go build beck.go) and save it somewhere on your path
- Create .config/beck/source a symbolic link to the directory to backup
- Create .config/beck/backup a symbolic link to the backup directory (hopefully on a different volume from source)
- Write in .config/beck/exclude the list of things you want to exclude from the backup
- Write in .config/beck/include the list of things you want to include in the backup
- run ./beck back to execute backup, ./beck check to check last backup
=========
AUTOTRASH
=========
- Just set autotrash to run periodically in crontab, the amount of time files are preserved can be changed by editing autotrash (it's 3 days)
=====
WATCH
=====
- Compile Watch.go (go build Watch.go)
- call as "Watch " for example: "Watch make all" to run "make all" every time something changes in the current directory
- run "Watch -help" for options