{"action":"created","issue":{"url":"https://api.github.com/repos/rear/rear/issues/706","labels_url":"https://api.github.com/repos/rear/rear/issues/706/labels{/name}","comments_url":"https://api.github.com/repos/rear/rear/issues/706/comments","events_url":"https://api.github.com/repos/rear/rear/issues/706/events","html_url":"https://github.com/rear/rear/issues/706","id":118007972,"number":706,"title":"Copy \"rear recover\" log file and related data into recovered system","user":{"login":"jsmeix","id":1788608,"avatar_url":"https://avatars.githubusercontent.com/u/1788608?v=3","gravatar_id":"","url":"https://api.github.com/users/jsmeix","html_url":"https://github.com/jsmeix","followers_url":"https://api.github.com/users/jsmeix/followers","following_url":"https://api.github.com/users/jsmeix/following{/other_user}","gists_url":"https://api.github.com/users/jsmeix/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmeix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmeix/subscriptions","organizations_url":"https://api.github.com/users/jsmeix/orgs","repos_url":"https://api.github.com/users/jsmeix/repos","events_url":"https://api.github.com/users/jsmeix/events{/privacy}","received_events_url":"https://api.github.com/users/jsmeix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rear/rear/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"jsmeix","id":1788608,"avatar_url":"https://avatars.githubusercontent.com/u/1788608?v=3","gravatar_id":"","url":"https://api.github.com/users/jsmeix","html_url":"https://github.com/jsmeix","followers_url":"https://api.github.com/users/jsmeix/followers","following_url":"https://api.github.com/users/jsmeix/following{/other_user}","gists_url":"https://api.github.com/users/jsmeix/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmeix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmeix/subscriptions","organizations_url":"https://api.github.com/users/jsmeix/orgs","repos_url":"https://api.github.com/users/jsmeix/repos","events_url":"https://api.github.com/users/jsmeix/events{/privacy}","received_events_url":"https://api.github.com/users/jsmeix/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-11-20T10:10:40Z","updated_at":"2015-11-23T10:50:03Z","closed_at":null,"body":"At the end of \"rear recover\"\r\nthe log file /var/log/rear/\r\nand other recovery related data\r\nlike /var/lib/rear/layout/disklayout.conf\r\nand its matching /var/lib/rear/layout/diskrestore.sh\r\nexist only in the rear recovery system.\r\n\r\nWhen the rear recovery system is shut down\r\nthe \"rear recover\" related data is lost.\r\n\r\nI like to implement that \"rear recover\" by default copies\r\nthe recovery related log and data into the recovered system\r\nso that this data is later available for example for a detailled\r\nanalsysis of the recovery.\r\n\r\nTo keep the recovery related log and data strictly separated from\r\nthe other rear logs and data I like to use a separated directory\r\nvar/log/rear/recover for this.\r\n\r\nIn short:\r\nI like to implemet that at the end of \"rear recover\"\r\nbasically the following is done:\r\n<pre>\r\nmkdir -p /mnt/local/var/log/rear/recover\r\ncp -p /var/log/rear/rear*.log /mnt/local/var/log/rear/recover\r\nmkdir /mnt/local/var/log/rear/recover/layout\r\ncp -pr /var/lib/rear/layout/*  /mnt/local/var/log/rear/recover/layout\r\n</pre>\r\n\r\nI did a \"rear --debugscripts xv recover\" and the above\r\ncommands manually and /mnt/local/var/log/rear/recover\r\nneeds 1.1 MB disk space and with plain \"rear recover\"\r\n/mnt/local/var/log/rear/recover needs needs 80 kB for me.\r\n\r\nI do not think this \"wastes disk space\" and therefore\r\nI think it can (and should) be done by default.\r\n\r\nIf there is so little free disk space that about 2 MB\r\nfor 'rear recover' with 'set -xv' and about 100 kB\r\nfor plain 'rear recover' makes a noticeable difference,\r\nthen that only points out the real problem\r\n(\"too little free disk space\").\r\n"},"comment":{"url":"https://api.github.com/repos/rear/rear/issues/comments/158903075","html_url":"https://github.com/rear/rear/issues/706#issuecomment-158903075","issue_url":"https://api.github.com/repos/rear/rear/issues/706","id":158903075,"user":{"login":"gdha","id":888633,"avatar_url":"https://avatars.githubusercontent.com/u/888633?v=3","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T10:50:03Z","updated_at":"2015-11-23T10:50:03Z","body":"@jsmeix @schlomo Personally, I don't think a log file is a security threat if it is readable. We only have to make sure there are no passwords or any other sensitive data visible. And, I believe we already have done that in the past (#560)"}}