We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php79: /home 디렉토리에서 제외할 디렉토리/파일 목록을 만들 경우, 아래처럼 4번째 인자값을 추가해주시면 됩니다. backup /home/ localhost/ exclude_file=/backup/home.exclude (탭으로 구분되어 있습니다.)
현재 위와 같이 vi /etc/rsnapshot.conf 설정값이 있는데요.
/backup/home.exclude 내에 /home/test/
지정해줘도 백업시 test 계정을 백업하고 있습니다.
테스트를 해봤는데 특별한 에러는 보이지 않습니다.
예전부터 잘 사용해왔는데. 백업하드 교체후에 백업은 잘 진행되는데 exclude_file 부분이 적용이 안되고 있네요.
[root@localhost backup]# rsnapshot -t daily echo 649 > /var/run/rsnapshot.pid mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /home/ /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /etc/ /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /var/spool/cron/ /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /root/ /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /var/lib/mysql/ /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/daily.0/localhost/ mkdir -m 0755 -p /backup/.snapshots/tmp/ cd /backup/.snapshots/tmp/ /backup/.snapshots/php79-mysql-backup.sh cd /backup/.snapshots/ sync_if_different("/backup/.snapshots/tmp/", "/backup/.snapshots/daily.0/localhost/mysqldump/") mkdir -m 0755 -p /backup/.snapshots/daily.0/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded --exclude-from=/backup/home.exclude /home/ /backup/.snapshots/daily.0/localhost/ touch /backup/.snapshots/daily.0/
The text was updated successfully, but these errors were encountered:
설정과 테스트 결과엔 이상이 없는 것 같은데요.
테스트 결과에 나온 rsync 명령에 n 옵션으로 대체해서, dry run 모드로 결과 확인이 필요해 보입니다.
n
/usr/bin/rsync -avn \ --exclude-from=/backup/home.exclude /home/ \ /backup/.snapshots/daily.0/localhost/ cat /backup/home.exclude ll /home/test/
Sorry, something went wrong.
테스트 결과를 다시 보니, /home 백업이 두번 지정된 것 같네요. 앞쪽에 exclude_file 없는 라인을 # 으로 주석 처리해주세요.
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /home/ /backup/.snapshots/daily.0/localhost/ /usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded --exclude-from=/backup/home.exclude /home/ /backup/.snapshots/daily.0/localhost/
No branches or pull requests
php79: /home 디렉토리에서 제외할 디렉토리/파일 목록을 만들 경우, 아래처럼 4번째 인자값을 추가해주시면 됩니다.
backup /home/ localhost/ exclude_file=/backup/home.exclude
(탭으로 구분되어 있습니다.)
현재 위와 같이 vi /etc/rsnapshot.conf 설정값이 있는데요.
/backup/home.exclude 내에
/home/test/
지정해줘도 백업시 test 계정을 백업하고 있습니다.
테스트를 해봤는데 특별한 에러는 보이지 않습니다.
예전부터 잘 사용해왔는데. 백업하드 교체후에 백업은 잘 진행되는데 exclude_file 부분이 적용이 안되고 있네요.
[root@localhost backup]# rsnapshot -t daily
echo 649 > /var/run/rsnapshot.pid
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
/home/ /backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded /etc/
/backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
/var/spool/cron/ /backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
/root/ /backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
/var/lib/mysql/ /backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/daily.0/localhost/
mkdir -m 0755 -p /backup/.snapshots/tmp/
cd /backup/.snapshots/tmp/
/backup/.snapshots/php79-mysql-backup.sh
cd /backup/.snapshots/
sync_if_different("/backup/.snapshots/tmp/",
"/backup/.snapshots/daily.0/localhost/mysqldump/")
mkdir -m 0755 -p /backup/.snapshots/daily.0/
/usr/bin/rsync -a --delete --numeric-ids --relative --delete-excluded
--exclude-from=/backup/home.exclude /home/
/backup/.snapshots/daily.0/localhost/
touch /backup/.snapshots/daily.0/
The text was updated successfully, but these errors were encountered: