Commit ae4df3ae authored by Olivier's avatar Olivier
Browse files

Prep scripts: better-defined input & output folder names

parent 8f557c14
......@@ -4,8 +4,8 @@
ASSGTSUFFIX='example'
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -13,9 +13,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,9 +10,9 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
......
#!/bin/bash
# Input parameters
inputfolder='script_input-real'
outputfolder='script_output-real'
inputfolder='script_input'
outputfolder='script_output'
timestamp=$(date "+%Y-%m-%d+%H%M%S")
outputbackupname="backup_output_$timestamp.tar"
......@@ -10,12 +10,11 @@ inputbackupname="backup_input_$timestamp.tar"
# Create archive of output folder
mkdir -vp archives
tar -cvf $outputbackupname --exclude=old $outputfolder
tar -chvf $outputbackupname --exclude=old $outputfolder
mv -vf $outputbackupname archives/
tar -cvf $inputbackupname --exclude=old $inputfolder
tar -chvf $inputbackupname --exclude=old $inputfolder
mv -vf $inputbackupname archives/
# Import output of M7 and M5 into input of M8
rsync -avh --delete ../M7_generate_grading/script_output/done/ $inputfolder/pdfs/
rsync -avh --delete ../M6_match_peers/script_output/peers.csv $inputfolder/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment