Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrux authored Nov 11, 2020
1 parent 0f9424d commit c4c508c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kissbup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

SOURCE_DIR="/home/username/BackupThis"
DEST_DIR="/media/diskos/kissbups/"
NAME_BACKUP="mybackup-$(date +%d-%m-%Y)"
BACKUP_NUM="10"

tar -zcpvf "$DEST_DIR"/"$NAME_BACKUP".tar.gz "$SOURCE_DIR"
find "$DEST_DIR"/* -mtime +$BACKUP_NUM -exec rm {} \;

0 comments on commit c4c508c

Please sign in to comment.