« Django Conventions Project Update | Incredibly useful SSH flag »
Just a quick warning/tip on using Django with rsync, for other people pulling their hair out later.
When you use rsync a good way to get a directory is using rsync -aCq, which means recursively, quietly, move a directory ignoring common files. The -a command means 'archive'; keep permissions and as much data about the files as possible. We use -C because it ignores .pyc and .svn files. However, in the list of included files is 'core', so that you don't move over core dumps.
Django however has a core directory inside of it, and using -C causes rsync to ignore that directory. So we ended up using the rsync command like so:
rsync -aCq --include=core
Hopefully this saves people some time trying to rsync Django in the future. I'd be curious what other rsync commands that people use for moving around django and/or other files.
Posted at 11:56 a.m. on January 29, 2009
Comments: 3
Tags: core , django , rsync , tip
The role of designers in the Django community
Announcing Django Crawler and django-test-utils
Should reusable apps have templates?
Welcome to the home of Eric Holscher on the web. I talk about software development, mostly in the realm of Django. I am interested in the real time web, testing, mobile apps, and other things.
Why Read the Docs matters
2 weeks, 1 day ago (Comments: 7)
Read the Docs Update
10 months ago (Comments: 2)
Using Reviewboard with Git
1 year ago (Comments: 0)
Read the Docs Updates
1 year ago (Comments: 1)
Handling Django Settings Files
1 year ago (Comments: 12)
Required Reading
1 year, 2 months ago (Comments: 0)
Using Haystack to index non-database content
1 year, 2 months ago (Comments: 4)
Correct commands to check out and update VCS repos
1 year, 2 months ago (Comments: 0)
Site upgrades
1 year, 2 months ago (Comments: 0)
Building a Django App Server with Chef: Part 4
1 year, 2 months ago (Comments: 1)
Setting up Django and mod_wsgi
Building a Django App Server with Chef: Part 1
Screencast: Django Command Extensions
Big list of Django tips (and some python tips too)
Handling Django Settings Files
Lessons Learned From The Dash: Easy Django Deployment
Large Problems in Django, Mostly Solved: Delayed Execution
Building a Django App Server with Chef: Part 2


Comments
1 Patrick Taylor says...
Thanks! I've been playing around with rsync and would probably have been tearing out what little hair I have left if I hadn't seen this.
Posted at 10:58 p.m. on January 29, 2009
2 Paul says...
What a funny little collision. Good catch!
Posted at 7:41 p.m. on January 30, 2009
3 Jordi Funollet says...
Almost the same, but with a lot of include/exclude on a hidden file:
This is easy to customize for every project and you can have files and dirs not replied. And force the 'django/core/' dir.
Posted at 6:46 p.m. on February 1, 2009