Advertisement
Capadillo

ark_backup_restore.sh

Feb 9th, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ##################################################
  4. #
  5. #
  6. # ARK: Survival Evolved Dedicated Server
  7. # Restore the world backup.
  8. #
  9. # Source: youtube.com/watch?v=jEeTBQne27Y
  10. #
  11. #
  12. ##################################################
  13.  
  14. # Settings
  15. echo Enter the filename of the backup you wish to restore:
  16. read archive_name
  17.  
  18. # Stop ARK Server.
  19. systemctl stop ark
  20.  
  21. # Restore backup files using TAR.
  22. tar -xvf /home/capadillo/servers/backups/$archive_name.tar.gz -C /
  23.  
  24. # Restore permissions to user.
  25. chown -R capadillo:capadillo /home/capadillo/servers/ark
  26.  
  27. # Start ARK Server
  28. systemctl start ark
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement