This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
503 B

8 years ago
#!/bin/sh
date_string=`date +%Y-%m-%d`
MT_WORLDS_PATH=$HOME/.minetest/worlds
cd $MT_WORLDS_PATH
ls
name_string=FCAGameAWorld-$date_string.tar.gz
echo "Attempting to create $name_string"
if [ ! -f "$name_string" ]
then
tar -czvf "$name_string" FCAGameAWorld
if [ -f "$name_string" ]
then
echo "Successfully created $MT_WORLDS_PATH/$name_string"
else
echo "Failed to create $MT_WORLDS_PATH/$name_string"
fi
else
echo "Nothing to do. Already saved $MT_WORLDS_PATH/$name_string"
fi