deploy better with rsync #2

Closed
opened 2024-10-21 16:41:57 +00:00 by asl · 3 comments
Owner

think about using rsync with

rsync \
	--archive \
	--partial \
	--progress \
	--delete \
	--delete-excluded \
	--exclude "$(basename $0)" \
	--filter 'dir-merge,e /.rsync-filter' \
	$* \
	-- \
	"$FROM" "$TO:"
	```
	
[source](https://lobste.rs/s/bzg0kq/how_do_you_deploy_10_seconds#c_hoenl2)
think about using rsync with ``` rsync \ --archive \ --partial \ --progress \ --delete \ --delete-excluded \ --exclude "$(basename $0)" \ --filter 'dir-merge,e /.rsync-filter' \ $* \ -- \ "$FROM" "$TO:" ``` [source](https://lobste.rs/s/bzg0kq/how_do_you_deploy_10_seconds#c_hoenl2)
asl changed title from deploy to deploy better with rsync 2024-10-22 15:30:03 +00:00
Author
Owner
  • This seems like a good idea. the --filter stuff lets you say in the ./rsync-filter file what NOT to send while not also sending this file.
- This seems like a good idea. the --filter stuff lets you say in the ./rsync-filter file what *NOT* to send while not also sending this file.
Author
Owner

Using this with happyfi.org:
in ~/src/happyfi/Makefile

	rsync --archive --partial --progress --delete --delete-excluded -- _site/* zie@ovh.zie.fi:/var/www/www.happyfi.org/
Using this with happyfi.org: in `~/src/happyfi/Makefile` ``` rsync --archive --partial --progress --delete --delete-excluded -- _site/* zie@ovh.zie.fi:/var/www/www.happyfi.org/ ```
Author
Owner

Happy enough, going to close for now.

Happy enough, going to close for now.
asl closed this issue 2024-11-12 01:52:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aslrocks/website#2
No description provided.