{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Working directories","type":"basic","slug":"working-directories","excerpt":"Specify where backup jobs should be processed on remote hosts and the localhost","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]","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"54fda39021538c21006c49bb","user":"54bf8cd9dcfc4d0d00a1a19e","version":{"version":"0.5.0","version_clean":"0.5.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["54fda38f21538c21006c49a7","54fda38f21538c21006c49a8","54fda38f21538c21006c49a9","54fda38f21538c21006c49aa","54fda38f21538c21006c49ab","54fda3d347f93619001d2ae2","54fea8975c4ab10d00ef4279"],"_id":"54fda38e21538c21006c49a6","__v":3,"createdAt":"2015-03-09T13:43:42.927Z","forked_from":"54eb4535615ffc19003059f0","project":"545e249c7ca5470800b3a1b2","releaseDate":"2015-03-09T13:43:42.927Z"},"__v":0,"githubsync":"","project":"545e249c7ca5470800b3a1b2","createdAt":"2015-02-12T13:34:50.890Z","category":{"sync":{"isSync":false,"url":""},"pages":["54fda39021538c21006c49b6","54fda39021538c21006c49b7","54fda39021538c21006c49b8","54fda39021538c21006c49b9","54fda39021538c21006c49ba","54fda39021538c21006c49bb","54fda5d10c05ea25004ce0cd","5582f41f81672a3900bb4fe9"],"title":"Documentation","slug":"documentation","order":0,"from_sync":false,"reference":false,"_id":"54fda38f21538c21006c49a7","createdAt":"2014-11-08T14:11:40.826Z","project":"545e249c7ca5470800b3a1b2","version":"54fda38e21538c21006c49a6","__v":3}}
Working directories
Specify where backup jobs should be processed on remote hosts and the localhost