← 返回命令列表

Linux command

resticprofile 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Run backup

resticprofile backup

Run specific profile

resticprofile -n [profile] backup

Show configuration

resticprofile show

Initialize repository

resticprofile -n [profile] init

Schedule backups

resticprofile schedule

Run forget and prune

resticprofile forget

Unschedule all profiles

resticprofile unschedule --all

Check repository integrity

resticprofile -n [profile] check

List snapshots

resticprofile snapshots

Generate config template

resticprofile generate

说明

resticprofile is a configuration wrapper for the restic backup tool that organizes backup settings into named profiles. Each profile defines a repository location, backup paths, exclusion patterns, retention policies, and scheduling rules, allowing complex backup strategies to be managed through a single configuration file rather than lengthy command-line arguments. The tool integrates with system schedulers to automate backup operations. On Linux it creates systemd timers or cron jobs, and on macOS it uses launchd. Retention policies can differ between profiles, so frequently changing data can have short retention while archives keep longer histories. Pre- and post-operation hooks enable notifications, database dumps before backup, and cleanup tasks after completion. All standard restic commands (backup, forget, prune, restore, snapshots) can be run through resticprofile with profile-specific settings automatically applied. The generate command creates starter configuration templates.

参数

-n, --name _PROFILE_
Profile to use.
-c, --config _FILE_
Configuration file.
-v, --verbose
Verbose output.
-q, --quiet
Quiet mode.
--dry-run
Simulate only.
-l, --log _FILE_
Log to file.
--no-ansi
Disable ANSI color output.

FAQ

What is the resticprofile command used for?

resticprofile is a configuration wrapper for the restic backup tool that organizes backup settings into named profiles. Each profile defines a repository location, backup paths, exclusion patterns, retention policies, and scheduling rules, allowing complex backup strategies to be managed through a single configuration file rather than lengthy command-line arguments. The tool integrates with system schedulers to automate backup operations. On Linux it creates systemd timers or cron jobs, and on macOS it uses launchd. Retention policies can differ between profiles, so frequently changing data can have short retention while archives keep longer histories. Pre- and post-operation hooks enable notifications, database dumps before backup, and cleanup tasks after completion. All standard restic commands (backup, forget, prune, restore, snapshots) can be run through resticprofile with profile-specific settings automatically applied. The generate command creates starter configuration templates.

How do I run a basic resticprofile example?

Run `resticprofile backup` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n, --name _PROFILE_ do in resticprofile?

Profile to use.