-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.yaml
More file actions
65 lines (62 loc) · 2.19 KB
/
config-example.yaml
File metadata and controls
65 lines (62 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Example configuration file for SendRepo
# Customize the paths, remotes, and other settings as needed.
# Rename this file to config.yaml to use it.
config_sync:
# Use 'git pull' if your config is in a git repository
command: "git pull"
# Or use 'rclone' to sync from a cloud storage provider
# command: "rclone sync your_remote:path/to/config_folder ."
root: ~/
projects:
your-project:
path: "{root}/projects/your-project/"
remote: user@127.0.0.1:/home/user/your-project/
port: 22
backup_dir: /home/user/your-project/.sendrepo/backups/{timestamp}/
exclude:
- .git
- node_modules
- __pycache__
- .sendrepo
# pre_send: |
# echo "Pulling latest changes..."
# git pull
# post_send: |
# echo "Restarting service..."
# ssh -t user@127.0.0.1 "cd /home/user/your-project && sudo docker compose up --build -d"
another-project:
path: "{root}/projects/another-project/"
remote: user@127.0.0.1:/home/user/another-project/
port: 22
backup_dir: /home/user/another-project/.sendrepo/backups/{timestamp}/
exclude:
- .git
- node_modules
- __pycache__
- .sendrepo
# pre_send: |
# echo "Pulling latest changes..."
# git pull
# post_send: |
# echo "Restarting service..."
# ssh -t user@127.0.0.1 "cd /home/user/another-project && sudo docker compose up --build -d"
# Example project using SSH jump host (reverse tunnel)
# This uses ProxyJump to tunnel through a bastion host
# equivalent to: ssh -J user@remote-ip:22 -p 22 user-behind-nat@localhost
remote-project-via-tunnel:
path: "{root}/projects/remote-project/"
remote: user-behind-nat@localhost:/home/user-behind-nat/remote-project/
ssh_jump_host: "user@remote-ip:22"
port: 22
backup_dir: /home/user-behind-nat/remote-project/.sendrepo/backups/{timestamp}/
exclude:
- .git
- node_modules
- __pycache__
- .sendrepo
pre_send: |
echo "Pulling latest changes..."
git pull
post_send: |
echo "Restarting service..."
ssh -t -J user@remote-ip:22 -p 22 user-behind-nat@localhost "cd /home/user-behind-nat/remote-project && sudo docker compose up --build -d"