}
get_child_value(json_file.get_root(), "target-btrfs-bin", target_btrfs_bin);
- get_child_value(json_file.get_root(), "target-realpath-bin", target_realpath_bin);
get_child_value(json_file.get_root(), "target-findmnt-bin", target_findmnt_bin);
+ get_child_value(json_file.get_root(), "target-mkdir-bin", target_mkdir_bin);
+ get_child_value(json_file.get_root(), "target-realpath-bin", target_realpath_bin);
+ get_child_value(json_file.get_root(), "target-rm-bin", target_rm_bin);
+ get_child_value(json_file.get_root(), "target-rmdir-bin", target_rmdir_bin);
}
/*
- * Copyright (c) 2024 SUSE LLC
+ * Copyright (c) [2024-2025] SUSE LLC
*
* All Rights Reserved.
*
Shell get_target_shell() const;
string target_btrfs_bin = BTRFS_BIN;
- string target_realpath_bin = REALPATH_BIN;
string target_findmnt_bin = FINDMNT_BIN;
+ string target_mkdir_bin = MKDIR_BIN;
+ string target_realpath_bin = REALPATH_BIN;
+ string target_rm_bin = RM_BIN;
+ string target_rmdir_bin = RMDIR_BIN;
private:
/*
- * Copyright (c) 2024 SUSE LLC
+ * Copyright (c) [2024-2025] SUSE LLC
*
* All Rights Reserved.
*
// Create directory on target.
- SystemCmd::Args cmd1_args = { MKDIR_BIN, "--", backup_config.target_path + "/" + num_string };
+ SystemCmd::Args cmd1_args = { backup_config.target_mkdir_bin, "--", backup_config.target_path + "/" +
+ num_string };
SystemCmd cmd1(shellify(backup_config.get_target_shell(), cmd1_args));
if (cmd1.retcode() != 0)
{
// Remove info.xml on target.
- SystemCmd::Args cmd2_args = { RM_BIN, "--", backup_config.target_path + "/" + num_string + "/info.xml" };
+ SystemCmd::Args cmd2_args = { backup_config.target_rm_bin, "--", backup_config.target_path + "/" + num_string +
+ "/info.xml" };
SystemCmd cmd2(shellify(backup_config.get_target_shell(), cmd2_args));
if (cmd2.retcode() != 0)
{
// Remove directory on target.
- SystemCmd::Args cmd3_args = { RMDIR_BIN, "--", backup_config.target_path + "/" + num_string };
+ SystemCmd::Args cmd3_args = { backup_config.target_rmdir_bin, "--", backup_config.target_path + "/" +
+ num_string };
SystemCmd cmd3(shellify(backup_config.get_target_shell(), cmd3_args));
if (cmd3.retcode() != 0)
{
AC_PATH_PROG([LVREMOVE_BIN], [lvremove], [/sbin/lvremove])
AC_PATH_PROG([LVRENAME_BIN], [lvrename], [/sbin/lvrename])
AC_PATH_PROG([LVS_BIN], [lvs], [/sbin/lvs])
+AC_PATH_PROG([MKDIR_BIN], [mkdir], [/bin/mkdir])
AC_PATH_PROG([REALPATH_BIN], [realpath], [/usr/bin/realpath])
AC_PATH_PROG([RM_BIN], [rm], [/bin/rm])
AC_PATH_PROG([RMDIR_BIN], [rmdir], [/bin/rmdir])
AC_DEFINE_UNQUOTED([LVREMOVE_BIN], ["$LVREMOVE_BIN"], [Path of lvremove program.])
AC_DEFINE_UNQUOTED([LVRENAME_BIN], ["$LVRENAME_BIN"], [Path of lvrename program.])
AC_DEFINE_UNQUOTED([LVS_BIN], ["$LVS_BIN"], [Path of lvs program.])
+AC_DEFINE_UNQUOTED([MKDIR_BIN], ["$MKDIR_BIN"], [Path of mkdir program.])
AC_DEFINE_UNQUOTED([REALPATH_BIN], ["$REALPATH_BIN"], [Path of realpath program.])
AC_DEFINE_UNQUOTED([RM_BIN], ["$RM_BIN"], [Path of rm program.])
AC_DEFINE_UNQUOTED([RMDIR_BIN], ["$RMDIR_BIN"], [Path of rmdir program.])
<refentry id='snapper-backup-configs5'>
<refentryinfo>
- <date>2024-12-17</date>
+ <date>2025-04-09</date>
</refentryinfo>
<refmeta>
<refentrytitle>snapper-backup-configs</refentrytitle>
<manvolnum>5</manvolnum>
- <refmiscinfo class='date'>2024-12-17</refmiscinfo>
+ <refmiscinfo class='date'>2025-04-09</refmiscinfo>
<refmiscinfo class='version'>@VERSION@</refmiscinfo>
<refmiscinfo class='manual'>Filesystem Snapshot Management</refmiscinfo>
</refmeta>
<varlistentry>
<term><option>target-btrfs-bin</option></term>
<listitem>
- <para>Location of the btrfs binary on the target. Optional.</para>
+ <para>Location of the btrfs binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>target-findmnt-bin</option></term>
+ <listitem>
+ <para>Location of the findmnt binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>target-mkdir-bin</option></term>
+ <listitem>
+ <para>Location of the mkdir binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>target-realpath-bin</option></term>
<listitem>
- <para>Location of the realpath binary on the target. Optional.</para>
+ <para>Location of the realpath binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><option>target-findmnt-bin</option></term>
+ <term><option>target-rm-bin</option></term>
+ <listitem>
+ <para>Location of the rm binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>target-rmdir-bin</option></term>
<listitem>
- <para>Location of the findmnt binary on the target. Optional.</para>
+ <para>Location of the rmdir binary on the target. Can also
+ be used to install wrapper scripts. Optional.</para>
</listitem>
</varlistentry>