{"_id":"54fda39021538c21006c49bb","user":"54bf8cd9dcfc4d0d00a1a19e","version":{"_id":"54fda38e21538c21006c49a6","__v":3,"forked_from":"54eb4535615ffc19003059f0","project":"545e249c7ca5470800b3a1b2","createdAt":"2015-03-09T13:43:42.927Z","releaseDate":"2015-03-09T13:43:42.927Z","categories":["54fda38f21538c21006c49a7","54fda38f21538c21006c49a8","54fda38f21538c21006c49a9","54fda38f21538c21006c49aa","54fda38f21538c21006c49ab","54fda3d347f93619001d2ae2","54fea8975c4ab10d00ef4279"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.5.0","version":"0.5.0"},"__v":0,"githubsync":"","project":"545e249c7ca5470800b3a1b2","category":{"_id":"54fda38f21538c21006c49a7","project":"545e249c7ca5470800b3a1b2","version":"54fda38e21538c21006c49a6","__v":3,"pages":["54fda39021538c21006c49b6","54fda39021538c21006c49b7","54fda39021538c21006c49b8","54fda39021538c21006c49b9","54fda39021538c21006c49ba","54fda39021538c21006c49bb","54fda5d10c05ea25004ce0cd","5582f41f81672a3900bb4fe9"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-08T14:11:40.826Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-12T13:34:50.890Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"ElectricSheep.IO uses specific directories to manipulate files and directories both on remote hosts and on the localhost. In both cases, it defaults to the `~/.electric_sheep` directory and automatically creates subdirectories to handle each job separately.\n\nFor remote hosts, it's a subdirectory of the home directory of the user which is used to open the SSH connection.\n\nTo override the local working directory, use the top-level `working_directory` instruction in your _Sheepfile_. For remote hosts, the working directory is defined specifically for each host:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"working_directory \\\"/var/backups\\\"\\n\\nhost \\\"db\\\", hostname: \\\"db.example.com\\\", working_directory: \\\"/tmp/backups\\\"\",\n      \"language\": \"ruby\",\n      \"name\": \"Sheepfile\"\n    }\n  ]\n}\n[/block]","excerpt":"Specify where backup jobs should be processed on remote hosts and the localhost","slug":"working-directories","type":"basic","title":"Working directories"}

Working directories

Specify where backup jobs should be processed on remote hosts and the localhost

ElectricSheep.IO uses specific directories to manipulate files and directories both on remote hosts and on the localhost. In both cases, it defaults to the `~/.electric_sheep` directory and automatically creates subdirectories to handle each job separately. For remote hosts, it's a subdirectory of the home directory of the user which is used to open the SSH connection. To override the local working directory, use the top-level `working_directory` instruction in your _Sheepfile_. For remote hosts, the working directory is defined specifically for each host: [block:code] { "codes": [ { "code": "working_directory \"/var/backups\"\n\nhost \"db\", hostname: \"db.example.com\", working_directory: \"/tmp/backups\"", "language": "ruby", "name": "Sheepfile" } ] } [/block]