Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install, can't restore backup #1244

Open
fossum opened this issue Mar 4, 2023 · 0 comments
Open

Fresh install, can't restore backup #1244

fossum opened this issue Mar 4, 2023 · 0 comments

Comments

@fossum
Copy link

fossum commented Mar 4, 2023

Some directories haven't been created if the server hasn't started. I think arkmanager just needs to create these. I'll provide my output and fix.

Steps:

  1. Verify arkmanager config
  2. arkmanager install
  3. 'arkmanager restore `

Output:

➜  ~ ararkmanager restore ~/main.2023-03-01_20.08.36.tar.bz2 
Running command 'restore' for instance 'main'
/usr/local/bin/arkmanager: line 431: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
/usr/local/bin/arkmanager: line 431: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
Restoring from /home/ericfoss/main.2023-03-01_20.08.36.tar.bz2
Restoring 2023-03-01_20.08.36/76561198419372157.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561198419372157.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/TheIsland.ark to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/TheIsland.ark
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/1499252976.arktribe to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/1499252976.arktribe
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/GameUserSettings.ini to /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer
tar: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
                                                                   [ FAILED ]
Restoring 2023-03-01_20.08.36/76561199335464757.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561199335464757.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/76561197964653736.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561197964653736.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/Game.ini to /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer
tar: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
                                                                   [ FAILED ]
Restore Complete                                                   [   OK   ]
➜  ~ ls /srv/ark/theisland/ShooterGame/Saved 
SavedArks
➜  ~

Work around:
Making the dirs allows restore to succeed. It still has a warning, but just the first time.

  ~ arkmanager restore ~/main.2023-03-01_20.08.36.tar.bz2                          
Running command 'restore' for instance 'main'
/usr/local/bin/arkmanager: line 431: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
/usr/local/bin/arkmanager: line 431: /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini: No such file or directory
Restoring from /home/ericfoss/main.2023-03-01_20.08.36.tar.bz2
Restoring 2023-03-01_20.08.36/76561198419372157.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561198419372157.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/TheIsland.ark to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/TheIsland.ark
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/1499252976.arktribe to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/1499252976.arktribe
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/GameUserSettings.ini to /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer
2023-03-01_20.08.36/GameUserSettings.ini
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/76561199335464757.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561199335464757.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/76561197964653736.arkprofile to /srv/ark/theisland/ShooterGame/Saved/SavedArks
2023-03-01_20.08.36/76561197964653736.arkprofile
                                                                   [   OK   ]
Restoring 2023-03-01_20.08.36/Game.ini to /srv/ark/theisland/ShooterGame/Saved/Config/LinuxServer
2023-03-01_20.08.36/Game.ini
                                                                   [   OK   ]
Restore Complete                                                   [   OK   ]
➜  ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant