Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › [Windows/Linux] - Automatic Backup System for BigAdv/BigBigAdv/SMP units.
New Posts  All Forums:Forum Nav:

[Windows/Linux] - Automatic Backup System for BigAdv/BigBigAdv/SMP units. - Page 5

post #41 of 152
Quote:
Originally Posted by falconkaji View Post
I'm testing that script out now - I'm almost positive sks72 posted that same script earlier in this thread.

I will say that for some reason cron didn't like
Code:
0,60,120,180 * * * * bash /home/falconkaji/fahbackup.sh
so I changed it to

Code:
00 * * * * /home/falconkaji/fahbackup.sh
which at least let me save my crontab file thing - I'm a bit of a linux noob, that should execute the script on the hour, every hour?
That would be correct, every hour on the hour. Or you could change it to:

Code:
*/15 * * * * /home/falconkaji/fahbackup.sh
to run it every 15 minutes.
The Box
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 D0 @ 3.8 GA-EX58-UD4P Radeon 4890 6G Patriot Viper + 12G Mushkin 
Hard DriveOSPower
Intel X-25E/Seagate 7200.11 1.5TB Windows 7 Corsair 650TX 
  hide details  
Reply
The Box
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 D0 @ 3.8 GA-EX58-UD4P Radeon 4890 6G Patriot Viper + 12G Mushkin 
Hard DriveOSPower
Intel X-25E/Seagate 7200.11 1.5TB Windows 7 Corsair 650TX 
  hide details  
Reply
post #42 of 152
Can I ask some questions about the script, since I'm new to Linux and trying to learn as much as possible?

Code:
user="[username]"
now=$(date +"%Y-%m-%d_%T")
cd ~
cp -r "/home/$user/fah" "/home/$user/backup/$now"
find /home/$user/backup* -mtime +1 -exec rm -r {} \\;
I understand it for the most part, I think, but I'm sort of unsure about the last line - it finds any folder in the "backup" directory, and if it has been more than 1 day since it was modified, deletes the directory, right? What are the brackets at the end of that line for? Am I understanding correctly that "-exec" just means that the arguments following it will be executed each time a matching directory is found?
    
CPUMotherboardGraphicsOS
Phenom II X4 955 BE @ 4GHz ASUS M4A89GTD Gigabyte 6850 + XFX 8800GT Debian/Win 7 
PowerCase
Antec EarthWatts 650 NZXT Phantom 
  hide details  
Reply
    
CPUMotherboardGraphicsOS
Phenom II X4 955 BE @ 4GHz ASUS M4A89GTD Gigabyte 6850 + XFX 8800GT Debian/Win 7 
PowerCase
Antec EarthWatts 650 NZXT Phantom 
  hide details  
Reply
post #43 of 152
Thread Starter 
Quote:
Originally Posted by falconkaji View Post
Can I ask some questions about the script, since I'm new to Linux and trying to learn as much as possible?

Code:
user="[username]"
now=$(date +"%Y-%m-%d_%T")
cd ~
cp -r "/home/$user/fah" "/home/$user/backup/$now"
find /home/$user/backup* -mtime +1 -exec rm -r {} \\;
I understand it for the most part, I think, but I'm sort of unsure about the last line - it finds any folder in the "backup" directory, and if it has been more than 1 day since it was modified, deletes the directory, right? What are the brackets at the end of that line for? Am I understanding correctly that "-exec" just means that the arguments following it will be executed each time a matching directory is found?
now = $(...) sets a system variable
user = "" sets a variable
cd ~ is cd to root
cp is copying the fah work folder to the backup folder with the folder name of the current date
find finds all folders created more than a day ago and
"-exec rm -r {} \\;" executes the command to remove the folders and {} i think is no params
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
post #44 of 152
Awesome, thanks csm!

This is the version I'm using now:

Code:
now=$(date +"%Y-%m-%d_%T")
cd ~
cp -r "/home/falconkaji/folding" "/home/falconkaji/folding-backup/$now"
find /home/falconkaji/folding-backup* -mmin +720 -exec rm -r {} \\;
I have limited space on my dedicated folder, so this way only backups newer than 12 hours should be saved. I tested it with -mmin +120 and it got rid of everything older than 2 hours, so I'm assuming this will work.
    
CPUMotherboardGraphicsOS
Phenom II X4 955 BE @ 4GHz ASUS M4A89GTD Gigabyte 6850 + XFX 8800GT Debian/Win 7 
PowerCase
Antec EarthWatts 650 NZXT Phantom 
  hide details  
Reply
    
CPUMotherboardGraphicsOS
Phenom II X4 955 BE @ 4GHz ASUS M4A89GTD Gigabyte 6850 + XFX 8800GT Debian/Win 7 
PowerCase
Antec EarthWatts 650 NZXT Phantom 
  hide details  
Reply
post #45 of 152
Thread Starter 
Clever lil boy... I should use that along with backups every 15
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
post #46 of 152
Well, the backup saved my butt again today, almost lost a unit when I had to restart. Checkpoint got all messed up.

I have some linux stuff that was given to me to post, so I will be redoing the op to include the linux info. =)
post #47 of 152
Thread Starter 
Nice
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
post #48 of 152
Thread updated to include linux. =)
post #49 of 152
Thread Starter 
Gee that section is snazzy!
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
Turbulence
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5-2500k 4.4GHz Asus P8P67 Pro 3.1 HIS HD 7870 2GB G.SKILL Ripjaws X 16GB 1600MHz 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 128GB Samsung Spinpoint F3 1TB Asus DRW-24B1ST Noctua NH-D14 
CoolingOSMonitorKeyboard
Accelero Twin Turbo II Windows 7 Professional N Dell U2311H Realforce 87U White 55cN 
PowerCaseMouseMouse Pad
Corsair TX650V2 Fractal Design R3 Black Pearl Razer DeathAdder SteelSeries 4HD 
AudioAudioAudio
Audinst HUD-mx1 Beyerdynamic DT990 Premium 600 Ω Recabled M-Audio AV40 
  hide details  
Reply
post #50 of 152
Quote:
Originally Posted by csm725 View Post
Gee that section is snazzy!
Probably because someone helped
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Overclock.net Folding@Home Team
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › [Windows/Linux] - Automatic Backup System for BigAdv/BigBigAdv/SMP units.