Interesting comparison. I usually prefer keeping backups simple, but directory structure can make a big difference when things go wrong. Do you have a preferred setup for restoring individual projects?
One slash, two backup layouts: rsync projects vs projects/
2 Comments
Jyle
•
BashSnippets
•
@[Jyle] I keep the trailing slash on both sides, so every project lands as its own folder under one root:
rsync -a projects/ backup/projects/
Then restoring one project is the same shape, just one level deeper:
rsync -a --dry-run -v backup/projects/app/ projects/app/
rsync -a backup/projects/app/ projects/app/
I ran that just now. Broke app/main.sh and deleted a file in a second project, web/. The dry run listed only main.sh, the real run put v1 back, and web/ stayed untouched because I only pointed rsync at app/. Dry run first is the habit that matters: it shows exactly what will be overwritten before anything is.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
79Posts
43Comments
14Connections
Linux user who got tired of Googling the same bash commands every time I sat down at a terminal. Sta... Show moreLinux user who got tired of Googling the same bash commands every time I sat down at a terminal. Started writing them down. That turned into bashsnippets.xyz -->
a free and growing library of copy-paste bash scripts with plain-English explanations. No logins, no paywalls, just scripts that work. I post a new one every week on YouTube & TikTok @BashSnippets. Show less
a free and growing library of copy-paste bash scripts with plain-English explanations. No logins, no paywalls, just scripts that work. I post a new one every week on YouTube & TikTok @BashSnippets. Show less
More From BashSnippets
Related Jobs
- Manager Retail Technology Projects / Gestionnaire des projets de technologies de vente au dtailEnergy Transfer · Full time · Canada
- Network Engineer - LAN/WLAN Build & Site MigrationAranda Tech · Full time · India
- Mission Critical Networks Software Engineer - Summer 2027 InternshipMotorola Solutions · Internship · Chicago, IL
Commenters (This Week)
Ben Santora
12 comments
Next Big Creative
2 comments
Steve Fentonverified
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!