You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
332 B
Smarty
14 lines
332 B
Smarty
1 year ago
|
#!/bin/bash
|
||
|
|
||
|
# Generated at $date - Do not edit!
|
||
|
# template: $template
|
||
|
|
||
|
KEEP=30
|
||
|
|
||
|
mkdir -p "$pkgroot/var/lib/seedlink/backup"
|
||
|
|
||
|
find "$pkgroot/var/lib/seedlink/backup" -type f -mtime +$$KEEP -exec rm -f '{}' \;
|
||
|
|
||
|
cd "$pkgroot/var/run/seedlink"
|
||
|
tar cf - *.seq *.state | gzip >"$pkgroot/var/lib/seedlink/backup/seq-"`date +'%Y%m%d'`.tgz
|