__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/bin/sh
# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 2; coding: utf-8 -*-
#
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Michael Terry


# Restic does not let us ask it to restore a file to an arbitrary path.
# Instead, you can only ask it to restore a path into another path.
# So restoring /a/b into /x/y will result in /x/y/a/b rather than the
# desired (by deja-dup) /x/y/b.
#
# So this wrapper abstracts that by redirecting the output of "restic dump"
# into a target file, handling directories which come in as tar files, as well
# as normal files which come in direct.
#
# Call this script like so:
# restic-dump-to reg /working/dir /target/file [restic dump ...]
# restic-dump-to dir /working/dir /target/dir [restic dump ...]
#
# Those commands will drop the target of the dump command into the given
# directory.

set -e

KIND=$1
WORKINGDIR=$2
TARGETFILE=$3
shift 3

if [ "$KIND" = "dir" ]; then
  # The ${VAR#/} syntax strips the leading slash
  SLASHES=$(echo "${TARGETFILE#/}" | tr -cd /)

  # The ${#VAR} syntax gives count of characters
  exec "$@" | tar x -C "$WORKINGDIR" --strip-components "${#SLASHES}"
else
  BASENAME=$(basename "$TARGETFILE")
  exec "$@" > "$WORKINGDIR/$BASENAME"
fi

Filemanager

Name Type Size Permission Actions
deja-dup-monitor File 58.45 KB 0755
restic-dump-to File 1.21 KB 0755
Filemanager