aarzilli / util

Collection of utilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=====
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 <command to execute>" for example: "Watch make all" to run "make all" every time something changes in the current directory
- run "Watch -help" for options

About

Collection of utilities


Languages

Language:Go 75.4%Language:Perl 19.7%Language:C 4.2%Language:Shell 0.7%