Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
How to write a helper function for backup ?
Answer

dobackup (){

# put backup commands here

tar -zcvf /dev/st0 /home >/dev/null 2 > & 1

}


Question
How to write a helper function for backup ?
Answer
?

Question
How to write a helper function for backup ?
Answer

dobackup (){

# put backup commands here

tar -zcvf /dev/st0 /home >/dev/null 2 > & 1

}

If you want to change selection, open document below and click on "Move attachment"

Putting functions in background - Linux Shell Scripting Tutorial - A Beginner's handbook
y progress while making backup # Based on idea presnted by nixCraft forum user rockdalinux # Show progress dots progress(){ echo -n "$0: Please wait..." while true do echo -n "." sleep 5 done } <span>dobackup(){ # put backup commands here tar -zcvf /dev/st0 /home >/dev/null 2>&1 } # Start it in the background progress & # Save progress() PID # You need to use the PID to kill the function MYSELF=$! # Start backup # Transfer control to dobackup() dobackup # Kil

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.