Hi All,
I am trying to archive a file. I have the script to archive a file which is given below:
#! /usr/bin/sh
INITFILE="US_Recon"
INITDIR="/var/opt/l2/CSN1/ap21"
TMPDIR="/var/opt/sap2bn/out/CSN1/ap21/tmp"
ARCHDIR="/var/opt/l2/CSN1/ap21"
FINALDIR="/var/opt/sap2bn/out/CSN1/ap21"... (0 Replies)
Hi There,
I want to create a script that will archive files out of a log folder into seperate folders below it, but I need it to keep the previous 2 days worth of information. Now I know I can easily get a script to put the files in there but I don't know how to only get files older than 2 days,... (10 Replies)
Hi there,
I have one huge archive (it's a system image).
I need sometime to create smaller archives with only one or two file from my big archive.
So I'm looking for a command that extracts files from an archive and pipe them to another one.
I tried the following :
tar -xzOf oldarchive.tgz... (5 Replies)
Hi,
I need to modify my archive script to archive only files which is already sftp to the windows. We encounter some issue which the file is already archiving though it is not yet sftp'd to the Windows.
Any answers.?Thanks! (1 Reply)
Hi,
I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file..
i used the test operator -f -a h almost all test operator but i failed
file1=ufs_root_image.dump
|| echo "files doesn't exist && exit 1
the false file1 is working but... (0 Replies)
Hi Unix Experts,
I am new in this filed.
I have assignment to Archive and purge the log file using shell scripts I tried I could not get the result please help me this.
Ex: test.log
requirement : using shell script I need to archive the log file and nil and the content of (test.log)... (1 Reply)
Hi All,
I have the below senario.
File_Name="^Test>*"
Move_Delay=12
Source_Folder="/odi/nas/"
Target_Folder="/odi/nas//archive"
Now I want to move any file that is older than "Move_Delay" hours and matching "File_Name" pattern from the folder "Source_Folder" to the folder... (2 Replies)
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
LEARN ABOUT XFREE86
git-upload-archive
GIT-UPLOAD-ARCHIVE(1) Git Manual GIT-UPLOAD-ARCHIVE(1)NAME
git-upload-archive - Send archive back to git-archive
SYNOPSIS
git upload-archive <directory>
DESCRIPTION
Invoked by git archive --remote and sends a generated archive to the other end over the Git protocol.
This command is usually not invoked directly by the end user. The UI for the protocol is on the git archive side, and the program pair is
meant to be used to get an archive from a remote repository.
SECURITY
In order to protect the privacy of objects that have been removed from history but may not yet have been pruned, git-upload-archive avoids
serving archives for commits and trees that are not reachable from the repository's refs. However, because calculating object reachability
is computationally expensive, git-upload-archive implements a stricter but easier-to-check set of rules:
1. Clients may request a commit or tree that is pointed to directly by a ref. E.g., git archive --remote=origin v1.0.
2. Clients may request a sub-tree within a commit or tree using the ref:path syntax. E.g., git archive --remote=origin v1.0:Documentation.
3. Clients may not use other sha1 expressions, even if the end result is reachable. E.g., neither a relative commit like master^ nor a
literal sha1 like abcd1234 is allowed, even if the result is reachable from the refs.
Note that rule 3 disallows many cases that do not have any privacy implications. These rules are subject to change in future versions of
git, and the server accessed by git archive --remote may or may not follow these exact rules.
If the config option uploadArchive.allowUnreachable is true, these rules are ignored, and clients may use arbitrary sha1 expressions. This
is useful if you do not care about the privacy of unreachable objects, or if your object database is already publicly available for access
via non-smart-http.
OPTIONS
<directory>
The repository to get a tar archive from.
GIT
Part of the git(1) suite
Git 2.17.1 10/05/2018 GIT-UPLOAD-ARCHIVE(1)