mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
31 lines
452 B
Bash
Executable File
31 lines
452 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DATE=`date +%Y%m%d`
|
|
COUNT=1
|
|
|
|
# XXX do a real three digit count...
|
|
DIR="./- ${DATE}.00${COUNT}/"
|
|
|
|
while [ -e "$DIR" ] ; do
|
|
COUNT=$((COUNT+1))
|
|
DIR="./- ${DATE}.00${COUNT}/"
|
|
done
|
|
|
|
|
|
|
|
echo "Creating directory: $DIR"
|
|
mkdir "$DIR"
|
|
echo "Creating directory: done."
|
|
|
|
|
|
|
|
echo "Copying files from $1..."
|
|
cp -Rpfv /mnt/${1}/* "$DIR"
|
|
echo "Copying files: done."
|
|
|
|
|
|
|
|
echo "Building archive..."
|
|
./process-archive.sh "$DIR"
|
|
echo "Building archive: done."
|