i am using the below script to zip the files with respect to their timestamp of the files.It is working fine.
For example lets take I have two files in this directory /path/folder1 with the timestamp as this month and previous month. When i run this script first time it is creating two folders under this directory path
also getting the zipped folders of these respectively.
when i un the script second time, again the zipped file
sep_bkp_files.zip is getting zip and and adding with the oct_bkp_files.zip folder.
If no files exixts in path/folder1 then it should come out and should not do anything.
i.e) If there is no files in path/folder1 directory then it should return "No Files exists to backup".
Also please help me if this script can be write some more better way.
Thanks in advance!
Last edited by Franklin52; 10-11-2012 at 05:24 AM..
Reason: Please use code tags for data and code samples
So tried:
cp -r -p test1/ user@machine:///srv/www/vhosts/domain.co.uk/httpdocs/backup/
but this didn't work either :(
Anyone able to help with this?
Many thanks
Mr M (3 Replies)
hello
i have 2 question
if i have 1 folder and under this folder many many sub folders and in every folders many files with man extension like *php * jpg * gif
i need to remove all *php files
1- from tha main folder only
2- from tha main folder and all sub folders
the second how... (6 Replies)
Hi,
I want to write a command to remove all the files from a folder and inner child folder without removing the child folders of parent folder.
like I have folder like this...
folder a/b/c
file a/test.sql
file a/b/test2.txt
file a/b/c/temp.jpeg
now I want to remove all... (2 Replies)
Hi,
I want to write a command to remove all the files from a folder and inner child folder without removing the child folders of parent folder.
like I have folder like this...
Code:
folder a/b/c
file a/test.sql
file a/b/test2.txt
file a/b/c/temp.jpeg
now I want to remove... (5 Replies)
Hello!
I need to realize such task.
1. In my user's home dir I have folder1;
2. In folder1 I have some (various count) subfolders with random names;
3. In these subfolders I have one file anyname.pdf (various name in each subfolder) and file content.txt (constant name in each subfolder)
##... (7 Replies)
Hello again,
A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x.
I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Hi,
So i know we use cp -r as a basic to copy folders/files.
I would like this BUT i would like to show the output of the files being copied.
With the amazing knowledge i have i have gone as far as this:
1) find source/* -exec cp -r {} target/ \;
2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi can you please help with the below ?
source file:
Column1,Column2,Column3,Column4
abc,123,dir1/FXX/F19,1
abc,123,dir1/FXX/F20,1
abc,123,dir1/FXX/F23,2
abc,123,dir1/FXX/C25,2
abc,123,dir1/FXX/X25,2
abc,123,dir1/FXX/A23,3
abc,123,dir1/FXX/Z25,3
abc,123,dir1/FXX/Y25,4
I want to... (1 Reply)
Hi,
I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script.
script was return as follows.
find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f
find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies
LEARN ABOUT DEBIAN
xsddiagram
XSDDIAGRAM(1) User Commands XSDDIAGRAM(1)NAME
xsddiagram - Xml Schema Definition (XSD) diagram viewer
SYNOPSIS
XSDDiagram.exe [-o output.svg] [-so EXTENSION] [-r RootElement]* [-e N] [-z N] [file.xsd]
DESCRIPTION
XSD Diagram, version 0.10.0.0
-o FILE
specifies the output image. Only '.svg' or '.png' are allowed. If not present, the GUI is shown.
-so EXTENSION
specifies the output image is streamed through the standard output. EXTENSION can be: png, jpg, svg or emf (emf on Windows only).
If not present, the GUI is shown.
-r ELEMENT
specifies the root element of the tree. You can put several -r options = several root elements in the tree.
-e N
specifies the expand level (from 0 to what you want). Be carefull, the result image can be huge.
-z N
specifies the zoom percentage from 10% to 1000% (only for .png image). Work only with the '-o', '-os png' or '-os jpg' option.
Example 1: > XSDDiagram.exe -o file.png -r TotoRoot -e 3 -z 200 ./folder1/toto.xsd
will generate a PNG image from a diagram with a root element 'TotoRoot' and expanding the tree from the root until the 3rd level.
Example 2: > XSDDiagramConsole.exe ./folder1/toto.xsd
will load the xsd file in the GUI window.
Example 3: > XSDDiagram.exe -r TotoRoot -e 2 ./folder1/toto.xsd
will load the xsd file in the GUI window with a root element 'TotoRoot' and expanding the tree from the root until the 2nd level.
Example 4: > XSDDiagram.exe -os svg -r TotoRoot -e 3 ./folder1/toto.xsd
will write a SVG image in the standard output from a diagram with a root element 'TotoRoot' and expanding the tree from the root
until the 3rd level.
xsddiagram 0.10 April 2012 XSDDIAGRAM(1)