Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing failing drive0 and drive1 symlink creation #354

Merged
merged 3 commits into from
Mar 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions functions/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ create_backup_config() {
if ! (whiptail --title "Storage container creation" --yes-button "Continue" --no-button "Back" --yesno "$introtext" 15 80) then echo "CANCELED"; return 0; fi
fi
# create virtual 'tapes'
mkdir ${storage}/slots # folder needed for following symlinks
/bin/chown ${backupuser}:${backupuser} ${storage}/slots
ln -s ${storage}/slots ${storage}/slots/drive0;ln -s ${storage}/slots ${storage}/slots/drive1 # taper-parallel-write 2 so we need 2 virtual drives
counter=1
while [ ${counter} -le ${tapes} ]; do
Expand Down