A
A
Alinw2020-06-29 13:49:52
Backup
Alinw, 2020-06-29 13:49:52

How to easily transfer files from one hosting to another?

How to transfer files from one hosting to another without losing data, and with the least difficulty and time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-06-29
@Tabletko

Crtl+C, Ctrl+V or scp or rsync

I
Igor Vorotnev, 2020-06-29
@HeadOnFire

The simplest, most convenient and fastest will always be scp or rsync:

# Находясь на старом сервере, рекурсивно копируем директорию отсюда на удаленный (новый) сервер
scp -r /path/to/local_dir remote_host:/path/to/remote_dir

# Или находясь на новом сервере, копируем директорию со старого
scp -r remote_host:/path/to/remote_dir /path/to/local_dir

Rsync is handy if you need to save permissions, owners, dates, or data already partially overlaps - you can learn more in the documentation or in one of the many lessons, such as this one . If we are talking about a simple transfer "from here to here, in its entirety and without any additional nuances - scp will be more than enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question