Skip to content

Commit d6dc8fa

Browse files
authored
[TASK] Rsync Deployment improvements (#5701)
Releases: main, 13.4, 12.4
1 parent 82d3a4e commit d6dc8fa

File tree

1 file changed

+16
-12
lines changed
  • Documentation/Administration/Deployment/Tools/Rsync

1 file changed

+16
-12
lines changed

Documentation/Administration/Deployment/Tools/Rsync/Index.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ Assuming:
6161
* The target directory on the server is /var/www/typo3-site/
6262

6363
.. code-block:: bash
64+
:caption: Run the command from your local development environment
6465
6566
rsync -avz --progress \
66-
~/Projects/typo3-site/public/ \
67-
~/Projects/typo3-site/config/ \
68-
~/Projects/typo3-site/vendor/ \
69-
~/Projects/typo3-site/composer.json \
70-
~/Projects/typo3-site/composer.lock \
67+
--exclude='.git/' \
68+
--exclude='.ddev/' \
69+
--exclude='node_modules/' \
70+
~/Projects/typo3-site/ \
7171
[email protected]:/var/www/typo3-site/
7272
7373
To use a custom SSH identity file or port, see:
@@ -76,6 +76,7 @@ To use a custom SSH identity file or port, see:
7676
In addition, transfer the database dump to a temporary location:
7777

7878
.. code-block:: bash
79+
:caption: Run the command from your local development environment
7980
8081
rsync -avz --progress \
8182
~/Projects/typo3-site/dump.sql \
@@ -94,15 +95,15 @@ code that you have developed locally. You do not want to override images that
9495
your editors have uploaded in the backend.
9596

9697
.. code-block:: bash
98+
:caption: Run the command from your local development environment
9799
98100
rsync -avz --progress \
101+
--exclude='.git/' \
102+
--exclude='.ddev/' \
103+
--exclude='node_modules/' \
99104
--exclude='public/fileadmin/' \
100105
--exclude='public/uploads/' \
101-
public/ \
102-
config/ \
103-
vendor/ \
104-
composer.lock \
105-
composer.json \
106+
~/Projects/typo3-site/ \
106107
[email protected]:/var/www/typo3-site/
107108
108109
To use a custom SSH identity file or port, see:
@@ -136,6 +137,7 @@ Assuming:
136137
* Your local development environment is at `~/Projects/typo3-site/`
137138

138139
.. code-block:: bash
140+
:caption: Run the command from your local development environment
139141
140142
rsync -avz --progress \
141143
[email protected]:/var/www/typo3-site/public/fileadmin/ \
@@ -147,6 +149,7 @@ It does not delete local files unless you explicitly add the `--delete` flag.
147149
To preview changes before syncing, you can use `--dry-run`:
148150

149151
.. code-block:: bash
152+
:caption: Run the command from your local development environment
150153
151154
rsync -avz --progress --dry-run \
152155
[email protected]:/var/www/typo3-site/public/fileadmin/ \
@@ -164,11 +167,12 @@ If your server uses a custom SSH port or requires a specific private key,
164167
you can specify them with the `-e` flag:
165168

166169
.. code-block:: bash
170+
:caption: Run the command from your local development environment
167171
168172
rsync -avz --progress \
169173
-e "ssh -i ~/.ssh/id_rsa -p 2222" \
170-
[email protected]:/var/www/typo3-site/public/ \
171-
~/Projects/typo3-site/public/
174+
[email protected]:/var/www/typo3-site/ \
175+
~/Projects/typo3-site/
172176
173177
Replace `~/.ssh/id_rsa` with your SSH key path and `2222` with the
174178
actual SSH port if different from the default (22).

0 commit comments

Comments
 (0)