![]() |
2013-03-21
, 20:53
|
Posts: 32 |
Thanked: 7 times |
Joined on Jun 2012
@ Russian Federation
|
#11
|
![]() |
2013-03-22
, 09:37
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#12
|
Dpkg::Pre-Install-Pkgs {"BKPDIR=/home/user/MyDocs/AptBackup/; if [ ! -d $BKPDIR ]; then mkdir -p $BKPDIR; fi; while read pkg; do cp $pkg $BKPDIR; done"};
![]() |
2013-03-25
, 22:10
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#13
|
The Following 3 Users Say Thank You to Schturman For This Useful Post: | ||
![]() |
2013-06-22
, 05:24
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#14
|
Dpkg::Pre-Install-Pkgs {"while read pkg; do /home/user/aptbackup.sh $pkg; done"};
#!/bin/sh PKG=$1 BKPDIR=/home/user/MyDocs/AptBackup FNAME=$(echo $PKG | sed -re "s/.*(\/)([^\/]*$).*/\2/" | sed -e "s/\.[^\.]*$/.deb/") mkdir -p $BKPDIR cp -f $PKG $BKPDIR/$FNAME;
![]() |
2013-06-22
, 06:28
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#15
|
aptbackup.sh automatically changing file extension to .deb before copying
![]() |
2013-06-22
, 16:15
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#16
|
echo 'Dpkg::Pre-Install-Pkgs {"BKPDIR=/home/user/MyDocs/Downloads/OVIcatch; if [ ! -d $BKPDIR ]; then mkdir -p $BKPDIR; fi; while read pkg; do cp $pkg $BKPDIR; done"};' > /etc/apt/apt.conf.d/02backup
echo 'Dpkg::Pre-Install-Pkgs {"while read pkg; do /home/user/aptbackup.sh $pkg; done"};' > /etc/apt/apt.conf.d/02backup