Remove import.sh and rewrite restore.sh