Our wfmigrate utility has a lot of features, but if you've already installed an app on our end and just want to copy files over from WebFaction (or any other host that supports rsync) then here's how to do that:
- Log into your server as your app's shell user: https://help.opalstack.com/article/14/ssh-access
- Run the following command, replacing
wfuser
and appname
with your WF username and application name:
rsync -Paz wfuser@webNNN.webfaction.com:webapps/appname/ ~/apps/appname
Enter your WF SSH password when prompted and there you go!
⚠️ If you have a lot of files then it can take a while to transfer everything. In that case, I recommend running the transfer in a terminal multiplexer like screen
or tmux
, like:
screen
# you'll see a new login session appear
rsync -Paz wfuser@webNNN.webfaction.com:webapps/appname/ ~/apps/appname
If your SSH connection is interrupted, you can log back in and run screen -r
to reattach to that session.
If you weren't using a multiplexer and your session is interrupted then you can log back in and repeat the rsync command. It will pick up where it left off and continue the transfer.