FISH MEMORIAL Fundraiser - T2T.ORG
0 Members and 4 Guests are viewing this topic.
Why do folks use Linux when BSD is available - especially when it can come in a simple to install version like trueos. What advantage does Linux offer?
anyone want anything as far as scripting automated tasks ?
#this is a comment, unless the # is followed by a ! ive indented them to make it more readable #set the interpreter using bash (most common) here#!/bin/bash #check to see if the drive is mounted if it is do the backupdrive=$(mount |grep "/backup") #use a if statement to backup only if the drive is mountedif [ "$drive" != "" ] then #set a date code DATE=$(date +%m-%d-%y) #archive and compress the files to the backup drive tar -czf /media/user/backup/$DATE-home.tar /home/user/ fi
* 19 * * * /home/user/script.sh
0 1 * * * /home/user/backups.sh
#archive and compress the files to the backup drive
tar -czf /media/user/backup/$DATE-home.tar
tar -czf /media/user/backup/$DATE-home.tar.gz
fuckin mv
In the backup script wr250 posted up above he mentions the nano editor. I've never used nano - not even once..............