- inc->options |= FO_IF_NEWER;
- break;
- case 'Z': /* gzip compression */
- inc->options |= FO_GZIP;
- inc->level = *++p - '0';
- Dmsg1(200, "Compression level=%d\n", inc->level);
- break;
- default:
- Emsg1(M_ERROR, 0, "Unknown include/exclude option: %c\n", *p);
- break;
- }
+ inc->options |= FO_IF_NEWER;
+ break;
+ case 'A':
+ inc->options |= FO_ACL;
+ break;
+ case 'Z': /* compression */
+ rp++; /* skip Z */
+ if (*rp >= '0' && *rp <= '9') {
+ inc->options |= FO_COMPRESS;
+ inc->algo = COMPRESS_GZIP;
+ inc->Compress_level = *rp - '0';
+ }
+ else if (*rp == 'o') {
+ inc->options |= FO_COMPRESS;
+ inc->algo = COMPRESS_LZO1X;
+ inc->Compress_level = 1; /* not used with LZO */
+ }
+ Dmsg2(200, "Compression alg=%d level=%d\n", inc->algo, inc->Compress_level);
+ break;
+ case 'K':
+ inc->options |= FO_NOATIME;
+ break;
+ case 'X':
+ inc->options |= FO_XATTR;
+ break;
+ default:
+ Emsg1(M_ERROR, 0, _("Unknown include/exclude option: %c\n"), *rp);
+ break;
+ }