T
Tux1342
Guest
I play a game called starbound, but its in early beta so I want to back up my player data every hour, as it gets corrupted from time to time. so I am trying to make a simple script to back it up:
#!/bin/sh
while [ 1 ];do cp -r ~/.starbound/player ~/Documents/Starbound\ backups/$date;sleep 1h;done
The problem is, is it doesn't name the back up after the date, it names it player, so I want it so be $date, so I can keep track of when the back up was made, how can I get it to name it after the variable?
#!/bin/sh
while [ 1 ];do cp -r ~/.starbound/player ~/Documents/Starbound\ backups/$date;sleep 1h;done
The problem is, is it doesn't name the back up after the date, it names it player, so I want it so be $date, so I can keep track of when the back up was made, how can I get it to name it after the variable?