Skip to content

Instantly share code, notes, and snippets.

@wgzhao
Created January 4, 2013 02:32
Show Gist options
  • Select an option

  • Save wgzhao/4449429 to your computer and use it in GitHub Desktop.

Select an option

Save wgzhao/4449429 to your computer and use it in GitHub Desktop.
create amand backup server device label
-su-3.2$ for (( i=1;$i < =9;i++)); do amlable FileBackup FileBackup-0$i slot $i;done
labeling tape in slot 1 (file://yourpath/FileBackup/slots):
Reading label...
Found an empty tape.
Writing label FileBackup-01..
Checking label...
Success!
labeling tape in slot 2 (file://yourpath/FileBackup/slots):
Reading label...
Found an empty tape.
Writing label FileBackup-02..
Checking label...
Success!
.......
-su-3.2$ for ((i=10;$i<=25;i++));do amlabel FileBackup FileBackup-$i slot $i;done
labeling tape in slot 10 (file://yourpath/FileBackup/slots):
Reading label...
Found an empty tape.
Writing label FileBackup-10..
Checking label...
Success!
labeling tape in slot 11 (file://yourpath/FileBackup/slots):
Reading label...
Found an empty tape.
Writing label FileBackup-11..
Checking label...
Success!
.......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment